Child pages
  • Updating PrestaShop

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 1 – Save and Backup Your Current Store

...

Tip
titleDid you follow these 3 steps?
  1. Launched the Update tool
  2. Verified the parameters and started the update
  3. Finished the installation and removing the unneeded folders and files.

If you answered yes to all the questions above, then proceed to step 4.

QA and Testing

Import your Translation that you saved in Step 1

If you did export your own translations during step 1 (Backups), import them back into your new store by going to the “Tools” tab, then the “Translations” sub-tab.

Image Added

Verification of the main Domain Name and regeneration of your .htaccess

You should verify that the domain name assigned in the database is indeed the one that you are working with. To do so, visit the “Preferences” tab, then the “SEO & URLs” sub-tab.

Image Added

You must check the following information:

  • “PS directory”: this folder should be the one that you have transferred onto your FTP server; in this tutorial, it would be “/prestashop/”
  • “Domain Name”: This should be the domain name to which you are currently connected. Otherwise, all your links will be invalid and will use an incorrect domain name.
Warning
Caution
Caution

In any case, do not forget to regenerate your .htaccess file by going to the “Tools” tab, then “Generators”. If your old .htaccess file contains specific information related to your hosting, copy/paste them into the “Specific Configuration“ space provided in this same tab.

Verifying your theme’s compatibility

You can verify your theme’s compatibility with the updated version by visiting the “theme validator” developed by Prestashop.

This tools is available at the following address: http://validator.prestashop.com/

If you use an unmodified copy of the default theme of PrestaShop, this step is not necessary.

Tests to be done on your new store.

To make sure that everything is working properly on your updated store, you should perform a few tests:

Tip

Testing To-Do List (this is not a complete list, you should do as much testing as possible):

  • All pages load properly (Home, Categories, Products…)
  • Create a customer account
  • Place an order (add to cart and order)
  • Verify that payments work properly (credit card, Paypal, etc.)
  • In the Back Office , check that the order was properly placed and received
  • Send an email from the contact page or “Forgot my password”
  • Check the resulting invoice
  • Check all the modules that you have activated


If every test is successful, congratulations! Proceed to step 5.

Step 5 - Going live with your Up-to-Date Store.

Swapping your updated store and your production store.

Congratulations, you have achieved all the essential steps to update your store!

You now need to swap your updated store with your production store.

You have two options to do so:

  • On your FTP Server, select the entire content of the “prestashop” folder and drag’n’drop it to the folder of your production store. This option is fast. If your FTP client offers to do it, ask to have it overwrite all existing files

...or...

  • You can also download you whole updated store directory (“prestashop”) from the FTP server into your local computer, and then upload all the files back onto your production folder. This option will take a little bit longer, and you should again select the option to overwrite all the files.
Warning

At the end of the operation, edit the file config/settings.inc.php: look for the line containing PS_BASE_URI, and replace “/prestashop/” by “/”. If you don’t do that, your images and theme will not appear correctly.

-> For more information, look at the end of the Paragraph D.4 step 2.

Activating your store

Visit the “Preference” tab in the back-office of your production store and click “Yes” for the option “Enable Shop”.

Image Added

In case of issues

In some rare cases, some modules are not compatible with new version of PrestaShop. You should contact the company / person that provided you with this module to request a few code changes to bring it up to date.

Rolling back your database. (Only proceed to this step if you have no other way out)

If your update went bad and you do not see any other fix than to roll back to the previous version of your database, there are two mains way of doing so:

  • Ask your hosting provider to restore the back up for you.
    Make sure to provide them with the latest backup that you have done during Step 1!

...or...

  • Import your backed up data via phpMyAdmin
    If the size of your database is too big, you might encounter an error message. If so, you might need to ask your hosting provider for help by changing the size of the database maximum upload.
    This is typically done by the tools provided to you by your provider, most often phpMyAdmin.
    You will find the backup data under the /admin/backups folder.
    You can also download the database from within your back office. Visit “Tools” then “DBBackup”. Select your latest database and download it to your computer by clicking on it. It should typically take between 1 and 20 minutes to download.

Image Added

Contact us

Our support team is at your disposal for any technical detail pertaining to updating your shop to the latest PrestaShop version.