Imagine spending an entire day scouring the internet for the perfect Magento 2 extension, only to face frustration when it fails to function post-installation. If you’ve found yourself in this predicament, fear not. You’re not alone. Many users turn to Google, typing in the desperate query: “How to install extension Magento 2.” That’s where our detailed instruction comes to your rescue.
In this tutorial, we not only guide you through the installation process but also provide specific examples, including Magento 2 Extensions by BSS Commerce, the Marketplace extension, and a free module on Github.
How to install Magento extension from stores
Table of Contents
In case you purchase or download extensions: for example, BSSCommerce, you will have to install extension Magento 2 manually from zip files.
Please follow 6 steps as below:
Step 1: Unzip the file
Step 2: Create another directory called app/code/Bss/MODULENAME/ where MODULENAME must be replaced by the modules internal identifier. You can find it in the “composer.json” file in the extension ZIP file you downloaded, look at the node “psr-4”. For example, it could say “Bss\\AjaxCart\\” or “Bss\\OneStepCheckout\\” there, then the MODULENAME is the part after “\\” and before “\\”, so in our examples “AjaxCart” or “OneStepCheckout”. This is what you call the directory, then, for example, app/code/Bss/AjaxCart, and you put the contents of the extension ZIP file in there.
Step 3: Upload the directory app/code/Bss/MODULENAME/ into the root directory of your Magento installation. All directories should match the existing directory structure
Step 4: Go to Magento 2 root directory. Run: php bin/magento setup:upgrade.
Step 5: Run: php bin/magento setup:static-content:deploy.
Step 6: Clear all Cache.
Then, you will get a public key and private key to install Magento 2 extensions.
Now, let’s navigate through the following 5 steps to install Magento 2 extension via composer:
Step 1: Find the extension you want to install and click Technical Details in My Purchase.
Step 2: Navigate to your Magento project directory and update your composer.json file.
composer require <component-name>:<version>EX: composer require bsscommerce/push-notification:1.0.0
Step 3: Run: php bin/magento setup:upgrade
Step 4: Run: php bin/magento setup:static-content:deploy.
Step 5: Clear all Cache.
Install via admin web setup wizard
First, Step 1: In the Magento 2 Admin Panel, navigate to System ⇒ Web Setup Wizard ⇒ Component Manager.
Step 2: Go to Review and Install.
Step 3: Then, in the list of components available, find the Magento 2 extension you want to install, and press “Install.”
Step 4: Start the Readiness Check.
If you see an error like that in the screenshot below, try to set up a Magento 2 cron job and resolve other issues first before proceeding.
If you don’t encounter any errors when performing the step above, just hit ‘Next.’
Step 5: Create a Backup if necessary and then next.
Step 6: Finally, just hit ‘Enable’.
How To Install Extensions in Magento 2 from Github
For those who do not know Github, this is one popular web-based Git version control system where you can find a well-code module available to download and install Magento extensions.
You can install extension magento 2 from Github in two ways:
Install Magento 2 extension manually from the zip file
Please follow the 6-step installation as in how to install Magento 2 extension from stores.
Install extension Magento 2 via composer
Note: One more time, remember to install Composer in advance.
Here we take BSS Commerce module on Github as an example.
Step 1: Find the extension you want to install as well as its name and version in file composer.json of the extension.
Step 2: Navigate to your Magento project directory and update your composer.json file.
composer require <component-name>:<version>
Example: composer require bsscommerce/push-notification:1.0.0
Step 3: Run: php bin/magento setup:upgrade.
Next, Step 4: Run: php bin/magento setup:static-content:deploy.
Step 5: Clear all Cache.
Final Thought
To sum it up, this step-by-step guide on Magento install extensions is like a map to help you through the sometimes tricky process of adding extra features to your Magento 2 online store. As you start using this guide, may your Magento store become even more useful and be able to keep up with the changing needs of the online world. Happy exploring!
If you are looking for the other guide to Disable or Uninstall Magento Extension. Read more:
BSS Commerce is one of the leading Magento extension providers and web development services in the world. With experienced and certified Magento developers, we commit to bring high-quality products and services to optimize our business effectively.
CONTACT NOW to let us know your problems. We are willing to support you every time.
NEW: We have launched Trello’s Product Roadmap to keep you updated on our latest product versions. Share your feedback and suggestions for Magento solutions to help us improve your experience here. With our Product Roadmap, you can also request updates or compatibility for your desired modules or suggest a new one to enhance your website.
>> Explore NOW!