...
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
Manual update (experts only)
Info |
---|
Doing a manual update is a long and detailed process, which should only be use out of necessity – for instance, if you cannot make an automatic update. Therefore, manual updates should be reserved to experts. |
Quick instructions
This small section is aimed at those who are already familiar with installing and updating PHP-MySQL web applications on a server. Should you not feel comfortable with their lack of details, you will find detailed instructions in the section following this one.
...
You're done! Enjoy all the new features brought by this update!
Step 1 – Save and Backup Your Current Store
Warning | ||
---|---|---|
| ||
Not backing up your store constitutes a very important risk if you encounter any difficulties with the upgrade. There is a risk of data loss. Do not ever skip this step. Do not proceed to step 2 unless you are absolutely certain that your backups are completed, successful, and fully functional. Do check several times. |
Backing Up Your Files
You must save all of the files related to your PrestaShop store.
...
- Copy all of your files from your server to your local computer using an FTP client.
This method is only possible if your hosting provider has provided you with an FTP access to your server. Create a "Backup" folder on your computer, then, using an FTP client (such as the free FileZilla client, which you can download at http://filezilla-project.org/), select all the PrestaShop files and folders on your server (use the Ctrl-A command) and copy them to your "Backup" folder.
Deactivating Your Store
Warning | ||
---|---|---|
| ||
Disabling your store is very important. |
...
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 store, while still making sure visitors cannot access the website.
In order to find out your IP address, visit this page: http://whatismyipaddress.com/
Backing Up Your Database
You must absolutely back up the whole database for your PrestaShop store.
...
- Download a Database Backup from your PrestaShop Back-Office.
Visit the "Tools" tab, then the "DB backup" sub-tab. This process will take between 1 and 20 minutes depending on the size of your database. Make sure this backup is functional, recent, and especially that it contains of all the data of your website. Open the zip file and make sure that there are absolutely NO ERRORS before proceeding to the next step.
Backing up Your Customized Translation
If you did not edit the available translations or add new ones (either PrestaShop's or your modules'), please proceed to step 2.
...
Tip | ||
---|---|---|
| ||
Does it contain...
You have checked the entire backup folder, and made sure that they are all correct and that you would be able to return to your current version / restore all of your data. If you answered yes to all of the questions above, then proceed to Step 2. |
Step 2 - Getting Ready for the New Version
Downloading and Unzipping of the Latest PrestaShop Version
Visit http://www.prestashop.com and download the latest version of PrestaShop (click the "Download" button on the homepage).
...
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.
Copying the files backed up during Step 1 to the "prestashop" folder
Some of the folders that you have backed up will need to be copied to your "/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.
In order to function properly with the latest version of PrestaShop, all these class files need to have their class name suffixed with "Core":- Open each and every one of the class files, and find the ones where the class name is not
Core
-suffixed. If you are upgrading from PrestaShop 1.4.x, you shouldn't have any (except for custom classes). - Rename the class name, adding the "Core" suffix. For instance, "
MyClass
" becomes "MyClassCore
".
Only change the name in the PHP class within file, not the name of the file itself! - If all the files already have "Core" in their classname (such as "
class AttributeCore extends ObjectModel
"), then you do not need to change anything. - Save the edited files.
- Open each and every one of the class files, and find the ones where the class name is not
/config
folder, only copy thesettings.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
" and "DB_PASSWD
" too.
- The line that contains "
Moving the "prestashop" folder to your FTP server
The "prestashop" folder that you have unzipped, now contains all the modifications from your "Backup" folder (and therefore, from your current live store). This next step will have you upload that folder on your FTP server.
...
Using your FTP client, upload the "prestashop" folder to your server.
Checking before going further
Let's say your store is at the following URL: http://www.myprestashop.com.
...
Tip | ||
---|---|---|
| ||
If you answered yes to all the questions above, then proceed to step 3. |
Step 3 – Starting the Update
Verification of all parameters before the update
The parameters of your hosting provider should show on the screen, as well as more details about the operation about to be launched.
...
Warning | ||||
---|---|---|---|---|
| ||||
You can check if the update has started in the upper right part of the screen, thanks to the progress bar. Do not leave the page or close your browser; wait for the update to be completed. |
Launching the update script
Visit your shop's update script URL; for instance: http://www.myprestashop.com/prestashop/install/upgrade/upgrade.php (Replace "myprestashop.com" with the actual URL of your store, and "prestashop" with the name of the folder that you have just transferred to your FTP).
If it returns a 404, then you might not have copied all the files from the latest PrestaShop 1.5 version. Go through this previous step again.
Finishing the update
Once the update is finished, a XML file should be displayed in your browser. This is expected. It should begin with the following node:
Code Block |
---|
<action result="ok"> |
Finishing the update (ou upgrade?): un rapport xml doit safficher qui commence par <action result="ok">
On your FTP server, inside the "prestashop" folder, you should delete:
...
Tip | ||
---|---|---|
| ||
If you answered yes to all the questions above, then proceed to step 4. |
Step 4 - QA and Testing
Import your Translations
If you did export your custom translations during step 1 (Backups), import them back into your new store by going to the "Tools" tab, then the "Translations" sub-tab.
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.
...
Warning | ||||
---|---|---|---|---|
| ||||
In any case, do not forget to regenerate your |
Verifying your theme's compatibility
You can verify your theme's compatibility with the updated PrestaShop version by visiting the theme validator developed by PrestaShop.
...
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):
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!
...
Warning |
---|
At the end of the process, edit the file |
Activating your store
Visit the "Preference" tab in the back-office of your production (now up-to-date) store and click "Yes" for the option "Enable Shop".