Skip to main content

How to upgrade extension

Follow these steps to update the extension via сomposer:

  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.

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

    composer require mirasvit/module-review:* --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 the Hyva installed, run:

    composer require mirasvit/module-review:* mirasvit/module-review-hyva:* mirasvit/module-comment-hyva:* --update-with-dependencies
  4. Run the command below to enable extension:

    php -f bin/magento module:enable Mirasvit_Core Mirasvit_Review Mirasvit_Comment Mirasvit_Vote

    If you have the Hyva installed, run:

    php -f bin/magento module:enable Mirasvit_Core Mirasvit_Review Hyva_MirasvitReview Mirasvit_Comment Hyva_MirasvitComment Hyva_MirasvitVote
  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 static view files:

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

    If you have the Hyva installed, run:

    cd /path/to/theme/web/tailwind/
    npm run build-prod
    cd /path/to/project/
    rm -rf pub/static/frontend/*; rm -rf pub/static/backend/*; rm -rf var/view_preprocessed/*;
    php -f bin/magento setup:static-content:deploy