Upgrade to the latest version of PrestaShop in a few clicks, thanks to this automated method. This module is compatible with all PrestaShop 1.6 & 1.7.
- PrestaShop 1.6 or 1.7
- PHP 5.6+
For older PHP versions, see previous releases of the module (ex. v1.6.8). Note they are unsupported and we strongly recommend you to upgrade your PHP version.
All versions can be found in the releases list.
- Clone (
git clone https://github.com/PrestaShop/autoupgrade.git
) or download the source code. You can also download a release Source code (ex. v4.4.1). If you download a source code archive, you need extract the file and rename the extracted folder to autoupgrade - Enter into folder autoupgrade and run the command
composer install
(composer). - Create a new zip file of autoupgrade folder
- Now you can upload into your module pages
Upgrading a shop can be done via:
- the configuration page of the module (access from your BO module page)
- in command line by calling the file cli-upgrade.php
Upgrade can be automated by calling cli-upgrade.php. The following parameters are mandatory:
- --dir: Tells where the admin directory is.
- --channel: Selects what upgrade to run (minor, major etc.)
- --action: Advanced users only. Sets the step you want to start from (Default:
UpgradeNow
, other values available).
$ php cli-upgrade.php --dir=admin-dev --channel=major
If an error occurs during the upgrade process, the rollback will be suggested. In case you lost the page from your backoffice, note it can be triggered via CLI.
Rollback can be automated by calling cli-rollback.php. The following parameters are mandatory:
- --dir: Tells where the admin directory is.
- --backup: Select the backup to restore (this can be found in your folder
<admin>/autoupgrade/backup/
)
$ php cli-rollback.php --dir=admin-dev --backup=V1.7.5.1_20190502-191341-22e883bd
Documentation is hosted on devdocs.prestashop.com.
PrestaShop modules are open source extensions to the PrestaShop e-commerce platform. Everyone is welcome and even encouraged to contribute with their own improvements!
Just make sure to follow our contribution guidelines.
You can report issues with this module in the main PrestaShop repository. Click here to report an issue.
This module is released under the Academic Free License 3.0