Installing the extension
Use these steps to install the extension on your store.
Prepare for installation
- Back up your store's database and web directory.
- Log in to the SSH console of your server and navigate to the root directory of the Magento 2 store.
- Copy the installation instructions from the page My Downloadable Products to the SSH console and press ENTER to proceed.
To manually install the module in the app/code/ directory, download the archive from My Downloadable Products -> View & Download, 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
-
Run the command below to enable the extension:
php -f bin/magento module:enable Mirasvit_Core Mirasvit_Affiliate -
Run the command below to install the extension:
php -f bin/magento setup:upgrade -
Clean the cache:
php -f bin/magento cache:clean -
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 is part of the extension; there is no separate package to install. After installing, rebuild your theme's styles:
-
Regenerate the Hyvä Tailwind configuration:
bin/magento hyva:config:generate -
Rebuild your Hyvä theme's Tailwind CSS (for example,
npm run buildin your theme'sweb/tailwindfolder). -
Deploy the static view files and clean the cache, as in the steps above.
Until version 1.9.0, Hyvä support was a separate package, mirasvit/module-affiliate-hyva (module Hyva_MirasvitAffiliate). Both are gone.
If you want to upgrade the extension, please refer to the How to upgrade the extension section. To temporarily disable or remove it, use the commands from the How to disable the extension section.