Skip to main content

Installing the extension

Use these steps to install the extension on your store.

Prepare for installation​

  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. Copy the installation instructions from the page My Downloadable Products to the SSH console and press ENTER.
note

To manually install the module in the app/code/ directory, download the archive from My Downloadable Products -> View & Download page, unpack it, and copy the contents to Magento's root directory. Then, access your server via SSH, navigate to the Magento 2 root, and follow the installation steps.


Execute the following set of commands to install​

  1. Run the command below to enable the extension:

    php -f bin/magento module:enable Mirasvit_Core Mirasvit_Review Mirasvit_Comment Mirasvit_Vote
  2. Run the command below to install the extension:

    php -f bin/magento setup:upgrade
  3. Run the command below for clean cache:

    php -f bin/magento cache:clean
  4. 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 are using the Hyvä theme​

Hyvä support ships inside the extension. There is no compatibility package to install — Advanced Reviews, Comments and Vote each register themselves with the Hyvä theme build.

  1. Check the file app/etc/hyva-themes.json. If there are no entries for the mirasvit/module-review, mirasvit/module-comment and mirasvit/module-vote packages, run the following command:

    php -f bin/magento hyva:config:generate
  2. Rebuild the theme's Tailwind CSS:

    cd /path/to/theme/web/tailwind/
    npm run build-prod
  3. Deploy the static view files:

    cd /path/to/project/
    rm -rf pub/static/*; rm -rf var/view_preprocessed/*;
    php -f bin/magento setup:static-content:deploy
  4. Run the command below to clean the cache:

    php -f bin/magento cache:flush

If you want to upgrade the extension, please refer to the How to upgrade extension section. To temporarily disable or remove it, use the commands from the How to disabling extension section.