Affiliate
v1.4.33

How to upgrade the extension

To upgrade the extension, follow these steps:

  1. Back up your store's database and web directory.
  2. Log in to the SSH console of your server and navigate to the root directory of the Magento 2 store.
    If the extension was installed via:

    • Composer: run the command composer require mirasvit/module-affiliate:* --update-with-dependencies to update the current extension with all dependencies.

      Note

      If you have the Hyva installed, run:

      composer require mirasvit/module-affiliate:* hyva-themes/magento2-mirasvit-affiliate:* --update-with-dependencies

      Note

      In some cases, the above command is not applicable, or you cannot upgrade just the current module and need to upgrade all the Mirasvit modules in a bundle. In this case, the above command will have no effect.

      Instead, run the composer update mirasvit/* command. It will update all the Mirasvit modules installed in your store.

    • Direct file upload: download the new extension package from our store and copy contents to the root Magento directory
  3. Run the command php -f bin/magento module:enable Mirasvit_Core Mirasvit_Affiliate to re-enable the extension.

    Note

    If you have the Hyva installed, run:
          bin/magento module:enable Mirasvit_Core Mirasvit_Affiliate Hyva_MirasvitAffiliate

  4. Run the command php -f bin/magento setup:upgrade to install updates.
  5. Run the command php -f bin/magento cache:clean to clean the cache.
  6. Deploy static view files

    rm -rf pub/static/*; rm -rf var/view_preprocessed/*; php -f bin/magento setup:static-content:deploy