Step Description | Expected result |
---|---|
Install A fresh 1.7.7.8 with php 7.1 | You should have the selection of where in your shop you want to go ( BO or FO ) |
Go to the BO | You should have your dashboard showed |
Go to the Module Catalog" page" | Module Catalog page is displayed correctly |
Search for the 1-click Install" module. Install it" | Module is correctly installed |
Go to your folder [yourshopname_folder] > module > Autoupgrade | You should have many files and folder, one files named README.md can help you |
CLI Check Version of module * Open a terminal on this folder * Launch the command “php bin/console “ * Launch the command “php bin/console –version” |
* You should be on the folder modules/autoupgrade * The Terminal should show you some available commands, etc * The terminal answer : “Update assistant 7.0.0” |
CLI Check Version Available * Launch the command “php bin/console update:check-new-version admin-dev” |
* The terminal should show a tab with : ** Version |
* Change your PHP to 7.4 * Launch the command “php bin/console update:check-new-version admin-dev” |
* You should be on php 7.4 thank to the app you used for * The terminal should show a tab with : ** Version |
* Add a zip and xml of a new version on [yourshop]/[admin_folder]/autoupgrade/download * Launch the command “php bin/console update:check-new-version admin-dev” |
* You should have your folder set with an index.php file and the two other that you add * The terminal should show a tab with : ** Version |
CLI Check Requirement * Modify any files from the folder of prestashop * Launch the command “php bin/console update:check-requirements admin-dev” |
* The file should be modified * The terminal should say : " Result of prerequisite cheks: : Some core files have been altered or removed.” and will list the different things different |
CLI Create Rollback * Launch the command “php bin/console backup:create admin-dev” |
* The terminal should start with :“INFO - Starting backup…” and end with “INFO - Backup completed successfully.” |
* Launch the command “php bin/console backup:create admin-dev” twice | * The terminal should start with :“INFO - Starting backup…” and end with “INFO - Backup completed successfully.” twice |
CLI List Rollback * Launch the command " php bin/console backup:list admin-dev” |
* The terminal should show you a tab like that : |
CLI Delete Rollback * Launch the command " php bin/console backup:delete admin-dev" * Launch the command “3” |
* The terminal should ask you to select a backup between 0 and 2, the number 3 is to exit the process * Your terminal should act like there is none command launch |
* Launch the command " php bin/console backup:delete admin-dev" * Launch the command “2” |
* The terminal should ask you to select a backup between 0 and 2, the number 3 is to exit the process * Your terminal should say “INFO - The backup file has been successfully deleted” |
* Launch the command " php bin/console backup:delete –backup=V1.7.7.8_ID admin-dev" | * Your terminal should say “INFO - The backup file has been successfully deleted” |
CLI Upgrade * Launch the command “php bin/console update:start “ * Launch the command “php bin/console update:start –xml=prestashop_9.0.0.xml admin-dev” * Launch the command “php bin/console update:start –zip=prestashop_9.0.0.zip admin-dev” * Launch the command “php bin/console update:start –xml=pr2.xml –zip=pr2.zip admin-dev” |
* Your terminal should say " Not enough arguments (missing: “admin-dir”)." * Your terminal should say “ERROR - Both ‘xml’ and ‘zip’ files attributes must be provided to use the local channel." * Your terminal should say “ERROR - Both ‘xml’ and ‘zip’ files attributes must be provided to use the local channel." * Your terminal should say “ERROR - File pr2.zip does not exist. Unable to select that channel.” |
* Add another zip of another version on [yourshop]/[admin_folder]/autoupgrade/download * Launch the command “php bin/console update:start –xml=prestashop_9.0.0.xml –zip=prestashop_8.0.3.zip admin-dev” |
* You should have two different zip and one xml on the folder * Your terminal should say “ERROR - The PrestaShop version in your archive doesn’t match the one in XML file. " |
* Launch the command “php bin/console update:start admin-dev” | * The terminal should start with ” INFO - Starting update… INFO - Destination version: 8.2.1” and end with : “INFO - The database has been cleaned. INFO - Shop updated to 8.2.1. Congratulations! You can now reactivate your shop.” |
* Change your PHP to 8.1 * Launch the command “php bin/console backup:create admin-dev” |
* You should be on php 8.1 thank to the app you used for * The terminal should start with :“INFO - Starting backup…” and end with “INFO - Backup completed successfully.” |
* Launch the command “touch config.json” * Open the files “config.json” in modules/autoupgrade * Put the information on it and Save it * Return on the terminal and launch the command “php bin/console update:start –config-file-path=config.json admin-dev” |
* A new files named “config.json” should be displayed on the files autoupgrade * You should have a file entirely blank * Your file should be completed * The terminal should say : “INFO - Update process will use archive. INFO - Configuration successfully updated. INFO - Starting update… INFO - Destination version: 9.0.0” |
CLI Start Rollback * Launch the command " php bin/console backup:restore admin-dev” * Launch the command “2” |
* The terminal should ask you to select a backup between 0 and 1, the number 2 is to exit the process * Your terminal should act like there is none command launch |
* Launch the command " php bin/console backup:delete admin-dev” * Launch the command “0” |
* The terminal should ask you to select a backup between 0 and 1, the number 2 is to exit the process * Your terminal should say at start “INFO - Restoring files …” and end with “INFO - Restoration process done. Congratulations! You can now reactivate your store.” |
* Launch the command “php bin/console update:start –xml=prestashop_9.0.0.xml –zip=prestashop_9.0.0.zip admin-dev” | * The terminal should say : “INFO - Update process will use archive. INFO - Configuration successfully updated. INFO - Starting update… INFO - Destination version: 9.0.0” |
* Launch the command “php bin/console backup:restore –backup=1.7.7.9_ID admin-dev” | * Your terminal should say at start “INFO - Restoring files …” and end with “INFO - Restoration process done. Congratulations! You can now reactivate your store.” |