Installing extensions in Magento 2 can significantly enhance your store's functionality. This comprehensive guide walks you through the complete installation process.
1. Manual Installation of a Magento 2 Extension
2. Install a Magento 2 Extension from Marketplace
Before you install an extension from the Magento Marketplace, make sure you have the following ready:
Before installing any extension, it’s important to check if it supports your Magento version.
You can find your store's Magento version by running this command in your terminal:
php bin/magento --version
Now, visit the extension’s page on the Magento Marketplace. Look under the "Release Notes" section to see if the extension works with your Magento version.
Once you confirm compatibility, go ahead and purchase the extension.
Note: You don’t need to manually download the extension from the Marketplace. Magento automatically installs it using Composer.
Open your terminal and go to your Magento root folder. Use Composer to install the extension:
For the latest version, run:
composer require vdcstore/backend-reindex
For a specific version like 2.1.2, run:
composer require vdcstore/backend-reindex:2.1.2
Then, run the following Magento CLI commands:
composer require Vendor_Name/Vendor_Module
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
Once the setup is done, clear the cache:
php bin/magento cache:clean
php bin/magento cache:flush
Now enable the module using this command:
php bin/magento module:enable Vendor_Module
php bin/magento setup:upgrade
php bin/magento setup:di:compile
To confirm that the extension is active, run:
php bin/magento module:status
Also, you can go to your Magento admin panel:
If it's a frontend feature, check your website. If it's an admin tool, try accessing its options in the admin panel.