Install-Extension-Magento-2-Clearly

Install Extension Magento 2 Clearly: A Step-by-Step Guide

by Stephanie Greene

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

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.

How to install Magento 2 extension from Marketplace

There are 3 ways to Magento install extension from marketplace:

Install Mageno 2 module manually from the zip file 

The first way to Magento 2 install extension from marketplace is via a zip file. Please follow the 6-step installation as above.

Install extension Mageno 2 via composer

Note:

  • It is required to install the composer first.
  • You must have your access key to install. Navigate to My Profile in Marketplace, then choose Access Keys in My Products section.
Install-extension-Mageno2-via-composer

Then, you will get a public key and private key to install Magento 2 extensions.

get-access-keys

Now, let’s navigate through the following 5 steps to install Magento 2 extension via composer:

choose-version

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.

magento-2-install-extension

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.”

magento-2-install-extension-manager

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.

magento-2-install-extesion-check

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’.

magento-2-how-to-install-extension-enable-min

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.

magento-2-install-module-via-composer-min

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! 

Next Reading Suggestions

© 2019 BSS Commerce owned by THANH CONG INTER ., JSC. All Rights Reserved.
Business registration certificate no. 0106064469 issued by Hanoi Department of Planning and Investment on 19 December 2019.
Legal Representative: Mr. Nguyen Quang Trung.