Pedro Lima Posted December 9, 2014 Share Posted December 9, 2014 (edited) Hi, I've just upgraded my Prestashop to 1.6.0.9 and I've been installing a new theme on it and configuring everything. The thing is, I have my 1.5 prestashop website up and running and sales are happening so to have my new website with all recent info, how can I transfer old database information to my new prestashop 1.6.0.9 database? I hope I just need to copy the tables from the old database to the new one. Thank you very much in advance. PS: I'm a Joomla/Wordpress guy, so this was a HUGE headache to adapt into the Prestashop system, but once you adapt to it, it's actually simplier than it looks in the begging. Best regards, Pedro Lima Edited February 1, 2015 by plima (see edit history) Link to comment Share on other sites More sharing options...
Pedro Lima Posted December 10, 2014 Author Share Posted December 10, 2014 Ohh, after some search I now understand why nobody answers... because there are PAID modules for that. Lol... anyway, I will find it myself and do it manually! Link to comment Share on other sites More sharing options...
Pedro Lima Posted December 10, 2014 Author Share Posted December 10, 2014 (edited) Ok, so actually this is even easier than I though! And for anyone that might have this same doubt, here's what I did: FIRST OF ALL, BACKUP ALL YOUR DATABASES!!! Now that you have finished your BACKUP (did I mentioned that you MUST BACKUP ALL YOUR DATABASES?), you do this: On your old prestashop database, you select these tables (I use phpmyadmin for that): ps_addressps_cartps_cart_productps_connectionsps_connections_sourceps_customerps_customer_groupps_customer_messageps_customer_threadps_guestps_messageps_ordersps_order_carrierps_order_detailps_order_detail_taxps_order_historyps_order_invoiceps_order_invoice_paymentps_order_paymentps_order_stateps_order_state_lang After that, you select "export" and save that file. Then, you go to your new prestashop database (DON'T FORGET TO BACKUP...) and you delete those tables mentioned above (ONLY THOSE ONES, MAKE SURE YOU ARE INDEED SELECTING THE RIGHT ONES). Now you have to import the file you exported from your old prestashop (not the entire backup, obviously... only the file that you exported with those tables selected)! After import the tables, you will now have to recreate come columns. Now this is a VERY important step, and if you don't do it correctly, your store will NEVER work! (if you don't know how to do this, ask a professional to do it for you or simply buy a module to export and import your stuff)- Add column "mobile_theme" to "ps_cart" as tinyint(1) and 0 as default- Add column "id_lang" to "ps_customer" as int(10) and NULL as default- Add column "date_upd" to "ps_customer_message" as datetime- Add column "mobile_theme" to "ps_guest" as tinyint(1) and 0 as default- Add column "mobile_theme" to "ps_orders" as tinyint(1) and 0 as defaultNow, I am not sure if these columns were added after I install some module or theme, but anyway if later you try to install some module or theme and some error appear regarding a column, you just have to remove that column and proceed to installation, and it will create the column again. Edited December 11, 2014 by plima (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts