Child pages
  • Manual update

Versions Compared

Key

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

...

  1. Save and Backup Your Current Store:
    • Deactivate your store ("Maintenance" page of the "Preferences" menu).
    • Back up your files to your desktop, using your FTP client in a new "prestashop-prod" folder. This will be a complete copy of your production site.
    • Back up your database ("Advanced Parameters/DB Backup" page, or using phpMyAdmin).
    • Back up your customized translation ("Export a language" section in "Tools/Translations" tab).
  2. Getting ready for the new version:
    • Download and unzip the latest version of PrestaShop: http://www.prestashop.com/en/download, and unpack it in a new "prestashop-prep" folder.
    • Copy your personal files (images, logos, photos, translations, modules, etc.) from "prestashop-prod" to "prestashop-prep" on your computer. A detailed list is available further down in this guide.
    • Copy the "prestashop-prep" folder to the web folder on your local server (/htdocs, /www, or any other name used by the server package you chose). This is the folder where you will first try to upgrade your PrestaShop, keeping your original backed-up files (prestashop-prod) and the files you prepared (prestashop-prep).
    • Recreate the production database on your local server: using phpMyAdmin, create a local database in which you will put the data from your production shop, using the SQL files that were backed-up at the start of the process.
  3. Starting the Local Update:
    • Launch the update script on your local server by accessing it with your browser. In version 1.6, that script is located at /install/upgrade/upgrade.php.
    • Verification of all parameters before the update: follow the instructions on screen and make sure your server conforms to the new version technical requirements.
    • Finishing the update: once the updater has finished, delete the /install folder and access both your front and back-office back office to make sure it works.
  4. QA and Testing:
    • Import your translations ("Import a language pack manually" section in "Localization/Translations" page).
    • Check that your theme is still working as expected. If this is not the case, you will have to edit its files.
    • Test your shop thoroughly: create accounts, buy products, cancel orders, check the invoices, etc.
  5. Start the update on your production web server:
    • Using your FTP client, replace the files for your online shop with those from your "prestashop-prep" folder.
    • Launch the update script on your production server by accessing it with your browser. In version 1.6, that script is located at /install/upgrade/upgrade.php.
    • Verification of all parameters before the update: follow the instructions on screen and make sure your server conforms to the new version technical requirements.
    • Finishing the update: once the updater has finished, delete the /install folder and access both your front and back-office back office to make sure it works.
    • Import your translations ("Import a language pack manually" section in "Localization/Translations" page).
    • Check that the main domain name is correct ("Preferences / SEO & URLs" page, "Shop URL" section).
    • Regenerate your robots.txt files ("Preferences / SEO & URLs" page, "Generate robots.txt" section).
    • Check that your theme still works as expected. If not, you will have to edit its files.
    • Test your store thoroughly: create accounts, buy products, cancel orders, check invoices, etc.
  6. Going live with your up-to-date store
    • Activate your store ("Maintenance" page under the "Preferences" menu).

...

Warning
titleCaution

Disabling your store is very important.
By doing so, you make sure that there is no activity on your store while you are updating it. Therefore, if you ever have to revert the update to a backup, however recent, you won't have lost any unfinished carts or orders.

Go to your store's back-officeback office, open the "Maintenance" page under the "Preference" menu, then select "No" for the "Enable Shop" option.

...

In the "Maintenance IP" field, located just below the "Enable Shop" one, enter your own IP address, so that you can keep on using your store during the update. This will allow you to test the front - office of your store, while still making sure visitors cannot access the website.
In order to find out your IP address, visit this page: http://whatismyipaddress.com/

...

  • Download a database backup from your PrestaShop back-officeback office.
    Go to the the "DB Backup" page, then follow the instructions on the page.

    Info

    This page is available from:

    • PrestaShop 1.4: under the "Tools" tab, in the "DB Backup" sub-tab.
    • PrestaShop 1.5 and later: under the "Advanced parameters", in the "DB Backup" page.

    This process will take between 1 and 20 minutes depending on the size of your database, after you will see a link appear on the page, titled "Download the Backup file (size)". Click it, and make sure this backup is functional, recent, and especially that it contains of all contains all the data of your website. Open the zip file and make sure that there are absolutely NO ERRORS in the .sql file it contains before proceeding to the next step.

...

  1. Navigate to the "Translations" page in your back - office.

    Info

    This page is available from:

    • PrestaShop 1.4: under the "Tools" tab, in the "Translations" sub-tab.
    • PrestaShop 1.5 and later: under the "Localization" menu, in the "Translations" page.
  2. In the section "Export a Language" select the language to which you have made any modifications, then select your current theme, and click "Export".
  3. Save the downloaded file into the "prestashop-prod" folder on your local computer.

...

You will thus have to browse the folders and files that were stores in stored in the "prestashop-prod" folder in order to access the correct location in the "prestashop-prep" folder.
Answer "Yes" every time the system asks you to replace the existing files.

...

Now go to your store's administration page, using your customized /admin folder name. You will have to log in using your usual credentials. Browse through the various administration page and check if the content is indeed there and that all the back - office pages do work, then take the store out of maintenance mode in order to explore the front - office pages the way a regular visitor would, and make sure that they all work.

...

  1. Using your FTP client, replace the files in your online store with those from your "prestashop-prep" folder.
    You should have nothing to worry about, because all your files have been backed up at the beginning of the process in the "prestashop-prod" folder, so you can return to this backup at any time. Ditto for your database, which has also been saved in the "prestashop-prod" folder as .sql file.
  2. Run the update script on your production shop, by accessing it using your browser. In version 1.6, the script is located at /install/upgrade/upgrade.php.
  3. Check all settings before updating: Follow the on-screen instructions and make sure that your server meets the technical requirements of the new version.
  4. End of update: Once the update is complete, remove the /install and browse your front - office and your back - office to make sure everything works.

...