This file contains two scripts: Copy_shopdata and Copy_shopdata_fix.
Copy_shopdata is a script that copies the content (business data) tables from the database of one Prestashop installation to the database of another installation. The products, orders, customers, etc of the new (usually freshly installed) shop will be completely replaced by those from the old shop while its configuration is maintained. Your customers can even keep their old passwords. As some additional settings need to be changed you should read the manual carefully.
By default the database structure and field definitions of the new shop are used. However, the are options to copy (part of) the structure of the old shop.
Copy_shopdata can used for three purposes:
- to fix a broken shop
- to fix a shop that can't be upgraded
- to transfer data to a new installation/template that has been prepared for an existing shop
Updating Prestashop webshops often results in unstable situations. This instability is nearly always in the files or the configuration settings. In either case this script can be a solution as it leaves both behind. It is far superior to a csv export as that copies only a part of your data.
Copy_shopdata should be installed in the same directory as Prestools as it uses Prestools for authorization. It should be installed in the new shop, after which you fill in the database credentials of the old shop in copy_shopsdata's config file.
Copy_shopdata is meant to repair installations. You should leave the upgrade process to Prestashop.
With the file copy_shopdata_imghub.php you can copy images from one installation on a server to another.
Copy_shopdata_fix copies all database tables to the database of a new shop of the same version that is on the same server and applies a few fixes. After that you can assign the new database to the shop.
This is mainly meant for shops that used to work but had a bad upgrade. It can be applied very quickly.
Documentation is in the pdf files.
PS. Nearly any shop can be repaired and/or updated this way. If you are afraid to do it yourself you can hire me to do it for you.
PS-2. Copy_shopdata was built for migration between installations of the same version. That is the recommended approach. However, as some people applied cross-version migration it contains some code to make that work too.
PS-3: For upgrading older Prestashop versions up to version 1.6.1.24 you can also try UpgradeHub. That offers an interactive way of executing the Prestashop upgrade process that offers you a way to see and correct the error messages.
You can download from the Prestools website: