Installing a Magento extension from a zip file is a straightforward process. You will need an unzipped copy of the extension on your computer and access to your Magento install files. Here's a step-by-step guide to help you through the process.
Installing a Magento extension from a zip file is a straightforward process. You will need an unzipped copy of the extension on your computer and access to your Magento install files. Here’s a step-by-step guide to help you through the process.
1. Obtain the Extension Zip Package
From Magento Marketplace
- Visit My Profile > My Products > My Purchases.
- Select the extension version you wish to download.
- Click the Download button.
From Developer Stores
- Log into your account on the developer’s store.
- Navigate to My Account > My Downloadable Products.
- Select the appropriate Magento version and download the file.
2. Examine the Contents of the ZIP File
- Extract the package into a new folder on your local computer.
- Check for directories like
Api
,Block
,Console
. If they are not nested withinapp/code
, you will need to create these folders manually.
Example: Mirasvit Extension
- Path:
/app/code/Mirasvit/BlogMx/
Example: TaxJar Sales Tax Automation
- If the extension lacks nested folders, create them:
/app/code/Taxjar/SalesTax/
- Copy the contents of the zip package into the
SalesTax
folder.
3. Upload the Module Files to the Magento Server
- Copy the Module to the Magento Installation FolderUse the following command to upload the module files: bashCode kopiëren
user@remotehost:/remote/dir/ scp -r /local/dir/app
This command copies the content of the localapp
folder to the remote path/remote/dir/
. - Connect to your Magento host via SSH and navigate to the Magento installation folder followed by the
/app/code/
directories. - Verify the successful copying of the files.
4. Complete the Installation
Make Magento Aware of the Copied Files
- Check the status of the modules:bashCode kopiëren
php7.3 bin/magento module:status
All extensions available in your Magento installation will be listed, with disabled modules at the bottom.
Enable Modules
- Enable each module (replace
VendorName
andModuleName
with the name of your module) and clear static view files: bashCode kopiërenphp7.3 bin/magento module:enable VendorName_ModuleName --clear-static-content
- If your extension consists of multiple modules, activate them in the required order: bashCode kopiëren
php7.3 bin/magento module:enable Mirasvit_Core php7.3 bin/magento module:enable Mirasvit_BlogMx --clear-static-content
Alternatively, activate both at the same time: bashCode kopiërenphp7.3 bin/magento module:enable Mirasvit_Core Mirasvit_BlogMx
Ensure the Extension is Enabled
- Check the status again to confirm the module is enabled: bashCode kopiëren
php7.3 bin/magento module:status
Register Modules and Generate Database Tables
- Run the setup upgrade command: bashCode kopiëren
php7.3 bin/magento setup:upgrade
Compile Magento Project
- Recompile your Magento project:bashCode kopiëren
php7.3 bin/magento setup:di:compile
Deploy Static View Files
- Deploy static view files:bashCode kopiëren
php7.3 bin/magento setup:static-content:deploy -f
Clear Cache
- Clear all cache:bashCode kopiëren
php7.3 bin/magento cache:flush
5. Customize the Newly Installed Extension
Return to the Magento admin panel to customize and configure the newly installed extension as necessary.
By following these steps, you will have successfully installed a Magento extension from a zip file and ensured it is fully integrated into your Magento installation.
Information checked and edited by Liam Ashley
Last updated: August 9, 2024....
Liam Ashley is a highly skilled e-commerce specialist with a deep expertise in Magento 2. With over a decade of experience in the industry, Liam has become a prominent figure in the e-commerce landscape, known for his innovative solutions and strategic insights. Currently serving as the lead Magento 2 developer
Read more about LiamStay in the loop
Now you can update. Receive product updates, new and successful versions from Magstack customers directly in my mailbox.