Child pages
  • Updating PrestaShop

Versions Compared

Key

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

...

You now should have a file: prestashop_1.x.x.zip (where "x" represents is a digit of the version number).

Unzip the file to your computer. If you do not yet have an unzipping tool, you can download a free one here: http://www.7-zip.org/ .

...

In that "prestashop" folder, select the "admin" folder and rename it to something unique to you (for instance, "admin436"). Your online store currently also has a unique "admin" folder, from its original installation; you can use that unique name if you wish. If you do not know the unique name of your online store's "admin" folder, use whichever name you want.

...

The following folders must be copied from your backup towards the recently unzipped "/prestashop" folder:

  • /mails folder has all the mails that you have modified.
    If you have never made any modification there, do not worry about this folder.
  • /img folder contains your logo and all the pictures of your store (categories, products…)
  • /modules folder, only copy the modules that you have added.
  • /themes/yourtheme folder, only copy your current theme. If you use the default theme from PrestaShop, do not copy it, you must use the one from the new version.
  • /download and /upload folders, which contain all the downloadable products, the attached files and the customizable products. If you do no use any of these functionalities, do not copy these folders.
  • /classes folder: in case you have added customized classes to this folder, copy them to the new /classes folder. Then open each and every one of them, and rename their name, adding the "Core" suffix. For instance, "MyClasse" becomes "MyClasseCore".
    Only change the name in the PHP class within file, not the name of the file itself.
  • /config folders, only copy the settings.inc.php file, then modify the following lines:
    • The line that contains "PS_BASE_URI" must contain the name of the subfolder where you are going to do your update. For instance, "/prestashop/" instead of "/", or of the name of current folder for your current store.
    • If you modified your database credentials (you should not have had to do that normally), update all the lines that contain "DB_NAME", "DB_USER" et "DB_PASSWD" too.

...

The "prestashop" folder that you have unzipped, now contains all the modifications from your "Backup" folder (and therefore, from your currently current live store). This next step will have you upload that folder on your FTP server.

...

  1. To test the update, you first downloaded the latest version of PrestaShop.
  2. You unzipped this version, which contained a folder called "prestashop".
  3. You copied your customized files from your backup to this new "prestashop" folder.
  4. You modified the file config/settings.inc.php on line "PS_BASE_URI" so that it has the name of the folder on your server (should be "prestashop").
    For instance:
    Code Block
    html
    html
    define('__PS_BASE_URI__', '/');
    
    ...was replaced by...
    Code Block
    html
    html
    define('__PS_BASE_URI__', '/prestashop/');
    
  5. You uploaded your "prestashop" folder to your FTP server, and it can be accessed at: http://www.myprestashop.com/prestashop

...

On your FTP server, inside the "prestashop" folder, you should delete:

  • The "{{/install" } folder (this subfolder contains the update tools).
  • The README files (contain information about the installation).
  • The CHANGELOG file (contains information about the latest changes in PrestaShop).

...

  • "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.

...