To install an extension in Magento, you can use one of the following methods:
Method 1: Using the Magento Marketplace
- Log in to your Magento account on the Magento Marketplace.
- Search for the extension you want to install.
- Click on the “Add to Cart” button and complete the purchase.
- Go to the “My Access Keys” section of your account, and generate an access key.
- Log in to the back office of your Magento site.
- Go to the “System” menu, and select “Web Setup Wizard.”
- Click on the “Extensions” tab and then click on the “Sync” button.
- Enter the access key you generated in step 4, and click on the “Start Readiness Check” button.
- Follow the instructions to complete the extension installation.
Method 2: Using Composer
- Log in to your Magento server via command line.
- Run the command
composer require package-name
(replace package-name with the name of the extension) - Run the command
bin/magento setup:upgrade
- Run the command
bin/magento setup:di:compile
- Run the command
bin/magento setup:static-content:deploy -f
Method 3: Using Direct file upload
- Download the extension package in .zip format.
- Log in to the back office of your Magento site.
- Go to the “System” menu, and select “Web Setup Wizard.”
- Click on the “Extensions” tab and then click on the “Upload” button.
- Click on the “Choose file” button, and select the .zip file of the extension you downloaded.
- Click on the “Upload” button, and follow the instructions to complete the installation.
It’s important to note that before installing any extension, you should check the compatibility of the extension with your Magento version and also backup your store.