Updating PrestaShop

Backing Up Your database

Before updating PrestaShop, you should back up your database and files. To back up your database, go to the Tools > DB Backup tab, make sure “Backup all table” is set to “Yes”, then click the “Create back-up” link and then click the “Download backup” link to download the backup to your computer. If you’re using an older version of PrestaShop that doesn’t have the Tools > DB Backup tab, you will need to log in to your server’s control panel, click the phpMyAdmin icon and then go to the Export tab to download a backup of your database.

Logging in to cPanel Accessing phpMyAdmin

Backing Up Your Files

To back up your files, return to your server’s control panel, then click the Backup option to create a backup of all your files.

Accessing Backups

Backing Up Your Translations

If you've modified the translations that come with PrestaShop, you will need to back up your translations. To do this, go to the Tools > Translations tab, choose each language and theme you want to back up in the "Export a language" section, then click the "Export" button.

Updating Your Files

Once you've done that, extract the PrestaShop archive you downloaded to a separate directory. Rename the admin directory to your previously renamed admin directory (e.g., admin123). You can then begin copying your old modified files from your backup.

  • If you modified PrestaShop's mail templates, merge the changes to the templates from your old mails directory with the mail templates in the new mails directory. If you've modified module mail templates, do the same with the mails directories in the module (e.g., modules/mailalerts/mails).
  • Copy all the images except the ones in the img/admin directory from the old img directory to the new one. This will overwrite the default product images with the ones from your old website.
  • Copy over all the third-party modules you added. Do not copy over the native PrestaShop modules, since they may been updated in the new PrestaShop version. If you've modified these modules, which is not recommended, then you will need to merge the changes you have made with the new modules. Also, if you modified modules/editorial/editorial.xml, copy it over to the new website so it isn't replaced with the default homepage text.
  • Copy over any third-party themes from the themes directory on your old site to the themes directory on your new site. NOTE: Do not copy the prestashop directory. If you modified the default PrestaShop theme instead of creating a new theme like recommended, then you will need to merge your changes with the latest default theme. You can test whether your theme is compatible with the updated version of PrestaShop using the PrestaShop Theme Validator.
  • Copy the contents of the old download and upload directories into the new download and upload directories. This will copy over your shop's downloadable products, attachments and customisable products.

Updating Your Database

After you've finished updating your files, upload them to your website, then go to http://www.yoursite.com/install to run the PrestaShop Updater. You will then be presented with the following steps:

Step 1 - Welcome
Step 2 - Disclaimer
Step 3 - System Compatibility
Step 4 - Update is Complete!