How to upgrade extension
Follow these steps to update the extension via composer:
-
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.
-
Run the command below to update the current extension with all dependencies:
composer require mirasvit/module-social-login:* --update-with-dependencies
tip
If the command doesn't work or you need to update all Mirasvit modules at once, use:
composer update mirasvit/*
If mirasvit/module-social-login-hyva is installed, you don't have to remove it first. From version 1.4.0 Hyvä support ships inside the extension itself, and composer takes the old package off during this update. No settings are lost, and setup:upgrade removes the retired Hyva_MirasvitSocialLogin module name from app/etc/config.php for you.
- Re-enable the extension by running the following command:
php -f bin/magento module:enable Mirasvit_Core Mirasvit_SocialLogin
- Run the command below to install updates:
php -f bin/magento setup:upgrade
- Run the command below to clean the cache:
php -f bin/magento cache:clean
- On a Hyvä storefront, rebuild the theme assets. The sign-in buttons take their Hyvä styles from the extension's own Tailwind source, and the theme picks them up only when Tailwind runs again:
bin/magento hyva:config:generate
cd /path/to/theme/web/tailwind/
npm run build-prod
cd /path/to/project/
- Deploy static view files:
rm -rf pub/static/*; rm -rf var/view_preprocessed/*;
php -f bin/magento setup:static-content:deploy