Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
It doesn't matter where the data comes from as long as it's properly structured to fit the import requirements.1) There is no indication in the documentation that the data needed for CBSubs import comes from the data table cbsubs_subscriptions. While possibly obvious to some, it would still be valuable to say that in the documentation. It removes one more level of doubt and lots of searching around to figure it out.
Format your select query to be in the correct order then export the results. This is doable using phpmyadmin if you're exporting existing entries in the database. Example as follows.2) The order of columns in the database (for those items needed for CBSubs import) is:
status,user_id,plan_id,subscription_date
And when we export that data from the database, that is the order in which the CSV file puts the data.
However, in CBSubs import, it requires that the data be in the order:
user_id,plan_id,status,subscription_date
In the actual data table, status is the first column. For the import function, status must be the 3rd column.
It would be more logical and less time consuming if the import order was identical to the order in which data is exported. Perhaps there is some reason why the order of columns is different, but if there is no particular reason, it would be nice if the order of columns was identical.
You don't rename anything. The database columns are irrelevant. You're just providing the data. 1 subscription per line. Example as follows.3) The text on the import page seems to indicate that we need to rename column headings from:
user_id,plan_id,status,subscription_date
To:
userid,planid,statusSingleChar,SubscriptionDateISO
Please Log in or Create an account to join the conversation.