How to update an Amasty extension?

How to update an Amasty extension?

Below, you may find the instructions on installing an update to an Amasty extension. Choose the appropriate method of the extension update – via Composer or via manual file upload. The choice of the method corresponds to the initial way the extension was installed.

Before updating the module, it's recommended to create a backup of the modified extension files (if any). When the update is finished, you can re-apply the custom patches and/or re-upload the altered files from the previously created backup if needed. 

Composer update

Step 1. Log in to the server via a command line and proceed to the root Magento folder.

Step 2. Execute the following command:

composer update amasty/<composer_module_name>

Here <composer_module_name> is the Composer name of the extension you are updating. To find the Composer name of the module, open the Products tab of your account and scroll down to the Composer packages section:

It is also possible to update multiple extensions with one command:

composer update amasty/<module_name_a> amasty/<odule_name_b> amasty/<module_name_c>

Or update all installed Amasty extensions at once: 

composer update amasty/*

Step 3. After the extension update, the following commands should be run:

php bin/magento setup:upgrade
php bin/magento setup:di:compile 
php bin/magento setup:static-content:deploy (your locale)

Manual file upload

Please delete the files of the previous module version. It is necessary to prevent possible errors due to the old files creating a conflict. This will not result in losing any configurations, created rules, etc., as this data is stored in the database and is not affected by the module update. 

To install the extension update, follow the steps below.

Step 1. Navigate to the Products tab in your customer account. Scroll down to the Packages section and click the Download link for the extension that should be updated:

Step 2. Unpack the downloaded .zip file. 

Step 3. Connect to the server where the website source folder is located with an FTP/SFTP client (WinSCP, Filezilla, Cyberduck, etc).

Step 4. Go to /upload/app and upload the files to the /app folder of your Magento website using the ‘Merge’ upload mode: 

Step 5. Connect to the Magento root directory via SSH and run the following commands: 

php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

As the 'Base' extension has been already installed, the system may ask to overwrite its files during the update — feel free to accept that.