Using extensions can be considered as a go-to solution when it comes to extending your Magento store’s functionalities. But not everyone knows how to install a Magento extension. If you are struggling to do so, this article is for you. In this article, we will show you 2 most common and easy ways to install a Magento 2 extension so that you can choose and follow one that suits you better.
Before we start, you may need to know where you can find an extension. Below is 3 popular sources for Magento users to search and purchase one:
- Magento marketplace is an official part of Magento ecosystem, where all extensions need to be strictly reviewed before being published.
- Packagist is the default package repository of Composer. You can search for an extension here if you are going to work on the installation via Composer.
- Or you can also purchase an extension directly from developer websites.
Install a Magento 2 extension using Magento standard procedure
Step 1: Download the extension in Magento marketplace
In Magento Marketplace, you can find anything, from Customer Support extensions to Marketing, Site Optimization,…
Normally, extension developers provide different packages for each Magento edition and version. Remember to carefully filter the right one before making a purchase. You don’t want to wrongly spend money on the extension you don’t need, do you?
Below is an example of Beeketing extension:
Step 2: After completing the order, you need to connect your site with your Magento marketplace account. This step is required so that you can install the extension from your Magento admin.
- Log in your Magento admin.
- In System, narrow down to Tools section.
- Visit Web Setup Wizard.
- Click on System Config tab.
- Sign in your Magento Marketplace account using access keys.
In this page, you will be able to add your Public access key and Private access key:
- Click Save Config to make the connection to your Magento Marketplace Account.
Step 3: Choose the extension to install
In Component Manager, you will see all new purchases. Below the total number of extensions you purchased, click Review and Install to see the list.
There, you will be able to select one that you want to install by clicking the Install button. In our example, the extension would be “beeketing/magento-beeketing”.
Step 4: Install the extension
- Readiness Check: this first sub-step is to make sure all elements on your site are compatible with the new extension.
- Create Backup: You can select one or all 3 options if needed.
- Component install: this is the last sub-step in your installation process. You will be informed that your store will be offline during the process. This is to make sure it will not affect your shoppers’ experience.
You should see a success notification after the installation is completed.
Now, you are able to access Beeketing extension at your left-side bar.
Install a Magento 2 extension manually via Composer
Manually installing extensions requires access to server bash shell using SSH (Secure Shell) since you will need to modify your remote server over the Internet.
Using Composer is a popular way to manage and install packages for PHP. This is also the method that we highly recommend to avoid as many errors as possible during the process.
Let’s get started!
From Terminal, navigate to the Magento root directory.
Step 1: Run the first command line:
composer require <component-name>
Let’s take Beeketing extension as an example, the command line would be:
composer require beeketing/beeketing-magento
It may take a couple of minutes to complete. After that, your Terminal window should look like this:
Step 2: For some extensions, it may require you to add your authenticate keys to connect with Magento Marketplace.
Step 3: Register the extension by running:
php bin/magento setup:upgrade
Step 4: You will be asked to recompile Magento as below. Then run the command:
php bin/magento setup:di:compile
to generate code and config dependency injection.
Step 5: In order to deploy extension’s static view files to Magento public directory, use the command:
php bin/magento setup:static-content:deploy
Step 6: Lastly, to clear Magento cache, run:
php bin/magento cache:flush
It helps to prevent loading errors in your store-front.
That’s it. The extension should show up in the side-bar in your Magento admin after you completed the last step.
If you have any difficulties while following our instruction to install Beeketing extension, you can always contact us at [email protected]. We are happy to help you for free.
Further details about Beeketing extension:
Beeketing extension is built to become a complete marketing automation extension for Magento stores. You can find everything you need in just one extension, from basic to advanced sales tools: sale notification, email marketing, up-selling, related products or automatic recommendation,…These tools will help you optimize your store for more conversions.
Let’s check them out and start making more sales today.