Skip to main content

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 your Magento 2 store.

  3. Run the following command to update the current extension along with all dependencies:

    composer require mirasvit/module-seo-filter:* mirasvit/module-navigation:* --update-with-dependencies

    In some cases, the command above may not be applicable, or you may be unable to update only the current module. If that's the case, you will need to upgrade all Mirasvit modules in a bundle. The command above will have no effect in such scenarios. Instead, run the following command to update all Mirasvit modules installed in your store:

    composer update mirasvit/*

    If you have Hyvä theme, use this command:

    composer require mirasvit/module-seo-filter:* mirasvit/module-navigation:* mirasvit/module-navigation-hyva:* --update-with-dependencies
  4. Re-enable the extension by running the following command:

    php -f bin/magento module:enable Mirasvit_Core Mirasvit_SeoFilter Mirasvit_Scroll Mirasvit_LayeredNavigation Mirasvit_Brand Mirasvit_AllProducts Mirasvit_QuickNavigation Mirasvit_LandingPage

    If you have Hyvä theme, use this command:

    php -f bin/magento module:enable Mirasvit_Core Mirasvit_SeoFilter Mirasvit_Scroll Mirasvit_LayeredNavigation Mirasvit_Brand Mirasvit_AllProducts Mirasvit_QuickNavigation Mirasvit_LandingPage Hyva_MirasvitLayeredNavigation Hyva_MirasvitAllProducts Hyva_MirasvitBrand Hyva_MirasvitQuickNavigation Hyva_MirasvitScroll

    If you are using Magento LiveSearch, additionally run:

    php -f bin/magento module:enable Mirasvit_LayeredNavigationLiveSearch
  5. Install the updates by running the following command:

    php -f bin/magento setup:upgrade
  6. Clean the cache by running the following command:

    php -f bin/magento cache:clean
  7. Deploy the static view files:

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