InformationEach Extendware Magento extension package is provided with the extension files, installation & setup guides, and a license agreement. Some extensions include import files examples as well. So how do you install our Magento extension?
What is the plugin installation method in Magento 2? There are 2 two ways of installing an extension in Magento 2. Let’s consider them both.
WarningBefore installing any 3rd-party extension on your Magento, make sure to back up the root folder of the Magento website and of the database. If you have a review or staging environment please test the installation upfront. Please consider to enable the maintenance mode of your Magento shop.
Method 1. Via Composer (recommended)
The first option on how to install Magento 2 extension manually is via Composer. You can freely install, update, and remove Magento 2 extensions using Composer.
Please request your private access first.
Add the custom repository to the composer.json
composer config repositories.private-packagist composer https://extendware.repo.packagist.com/your-company-name/
composer config --global --auth http-basic.extendware.repo.packagist.com token YOUR-PRIVATE-TOKEN
Please request your composer repository access for existing Magento 2 licenses here.
Method 2. How to install Magento 2 extension from the zip file?
For the installation, please prepare the Magento admin panel and SSH access details.
Follow the steps:
- unpack the .zip file you’ve downloaded;
- connect to the server where the website source folder is located with FTP/SFTP client (WinSCP, Filezilla, Cyberduck, etc);
- go to upload > app and upload the files from the app folder to the root app folder of your Magento website using ‘Merge’ upload mode. This way, your FTP/SFTP client will only add new files;
- connect to your Magento directory with SSH;
run the next commands:
php bin/magento setup:upgrade # to install the extension; php bin/magento setup:di:compile # to compile the code; php bin/magento setup:static-content:deploy # to deploy static view files. php bin/magento c:f # to flush caches
If you use the default or developer mode, you can skip commands 2 and 3.
That’s it! These were all the options for how to install our plugin in Magento 2.
Looking to install Magento 1 extensions? Click the link.