How to Install Magento 2 Extension

Magento, by Adobe, is an open-source e-commerce platform that is developed in PHP. The CMS is a powerful platform to build E-commerce stores that are capable of standing out amongst the competitors in today’s market.

Here are some of the interesting stats about Magento that shows how popular the platform is:

  • There are more than 75k sites in the US alone that are built using Magento
  • Magento stands in the top 5 technologies to build an E-commerce store

As feature-rich and powerful the Magento CMS is, the platform lacks certain functionalities owing to the different types and requirements of the modern businesses.

However, the main benefit of Magento is its insane customization capabilities. There are so many Magento 2 extensions available in the market that you can install in the Magento 2 store to extend the default functionality.

By installing the Magento 2 extensions, the merchants can offer additional benefits to customers. The post is all about Magento extensions and how to install Magento 2 extension. Read further for the stepwise Magento 2 extension installation method.

What is Magento 2 Extension?

An extension is a software that can be added to a Magento 2 website. It includes PHP code, functions, etc. and this code is installed in a Magento 2 store.

Magento 2 developers develop an extension to extend the default functionality, implement new functionality, solve a problem, or integrate third-party software.

Magento 2 extensions can be used in various areas of e-commerce such as:

Improving the different sections of the E-commerce store with the help of the Magento 2 extensions, contribute to a fully functional shopping platform.

What is the Use of Magento 2 Extensions?

Every e-commerce business has different requirements. For instance, there are two e-commerce websites. The first business only focuses on the local area or I should say the business is only limited to one city. On the other hand, the second business focuses on the entire nation.

Both businesses will have a different requirement. The first business would not prefer to include “Product Tracking” facility because the business is limited to only for a specific region. The second business, on the contrary, would definitely leverage “Product Tracking” facility.

One platform cannot be capable to satisfy the requirements of all types of businesses.

Enter Magento extensions.

By installing Magento extensions, implement the required features based on your business.

However, installing Magento 2 module ain’t simple. You need to follow the below steps to install an extension in Magento 2 store.

Methods to install Magento 2 extension:

  1. Install Magento 2 extensions using the Web Setup Wizard
  2. Install Magento 2 extension via composer from Magento Marketplace
    1. To Get the extension’s Composer name and version from the Magento Marketplace, log in to Magento Marketplace with the username and password you used to purchase the extension.
    2. In the upper-right corner, click Your name > My Profile.
    3. Click My Purchases.
    4. Find the extension you want to install and click Technical Details.
    5. Alternatively, you can find the Composer name and version of any extension in the extension’s “composer.json" file.
    6. Run the command – composer require <component-name>.
    7. If you get and dependency error, follow the steps to Bypass Dependency Error While Installing an Extension/Library Using Composer in Magento 2.
    8. Enter your Access Keys.Get Public and Private Keys from Marketplace
    9. Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
    10. Login to your SSH and run below commands step by step:
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x – php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above – php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush
  3. Install Meetanshi’s Magento 2 extensions via composer from the Marketplace or Github
    1. Create a folder structure in Magento root as app/code/Vendor/ExtensionName
      Note: Open registration.php file where Replace Vendor and ExtensionName from Vendor_ExtensionName.

      registration.php file
    2. Download and extract the zip folder and upload our extension files to the app/code/Vendor/ExtensionName via FTP.
    3. Login to your SSH and run below commands step by step:
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x – php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above – php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush
  4. Install Magento 2 extension from the store, say, Meetanshi, manually from zip files
    1. Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
    2. Login to your SSH and run below commands step by step:
      • php bin/magento setup:upgrade
      • For Magento version 2.0.x to 2.1.x – php bin/magento setup:static-content:deploy
      • For Magento version 2.2.x & above – php bin/magento setup:static-content:deploy –f
      • php bin/magento cache:flush

That’s it.

Any doubts about the Magento 2 installation process? If so, please mention them in the Comments section below. I’d be happy to help.

Also, please share the solution with newcomers in the Magento community via social media.

If you want to avoid the installation process and the issues you might face in it, you can simply opt for Meetanshi’s Magento Extension Installation Service that offers professional help to install Meetanshi’s Magento 1 and Magento 2 Extensions without any errors.

Thank you.

5
(based on 11 Reviews)
How to Install Magento 2 Extension

Sanjay Jethva

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply

Your email address will not be published. Required fields are marked *