Skip to main content

How to disable extension

Using these steps you can disable or remove extension.

Temporarily disable​

To temporarily disable the extension, please take the following steps:

  1. Log in to the SSH console of your server and navigate to the root directory of the Magento 2 store.

  2. Run the command below to cleanup related data:

     php -f bin/magento mirasvit:related:cleanup
  3. Run the command below to disable the extension:

    php -f bin/magento module:disable Mirasvit_Related Mirasvit_RelatedGraphQl

    The same command covers a Hyvä storefront and the GraphQl queries: from version 1.6.0 there is no separate Hyvä module to disable, and Mirasvit_RelatedGraphQl ships in the same package.

  4. Log in to the Magento backend and refresh the store cache (if enabled).

Re-enabling

To re-enable the extension later, run php -f bin/magento module:enable Mirasvit_Related Mirasvit_RelatedGraphQl and then php -f bin/magento mirasvit:related:restore to restore the product blocks' layout registrations that were removed by cleanup.


Removing the Extension​

To uninstall the extension, follow these steps:

  1. Log in to the SSH console of your server and navigate to the root directory of the Magento 2 store.

  2. Run the following command to remove the extension:

    composer remove mirasvit/module-related 

    This removes the Hyvä and GraphQl support with it. From version 1.6.0 they are part of the same package.

    warning

    If the former Hyvä companion was installed by unpacking an archive into app/code/Hyva/MirasvitRelated, delete that folder by hand: composer remove does not know about it.

  3. Log in to the Magento backend and refresh the store cache (if enabled).