Magento 2 module installation. Here's a detailed guide on how to proceed:
Magento 2 module Installation
Step 1:Extract the Zip File:
- Extract the contents of the zip file to a temporary directory on your
computer.
Step 2: Copy Files to Magento Root Directory:
- Copy all files and folders from the extracted zip file.
- Paste the copied files into the app/code directory inside your < Magento
root directory>. If app/code does not exist, create it.
Step 3: Open Terminal or CMD:
- Change your working directory to the Magento root directory using the
following command:
-
you need to run the following commands to install and activate the module:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:clean
Verify Installation:
Troubleshooting:
- Permissions Issue: Ensure the app/code directory and its contents
have the correct permissions set for your web server user.
-
Magento Cache: If you encounter issues, try clearing Magento caches and
reindexing:
php bin/magento indexer:reindex
php bin/magento cache:clean
Follow these steps to uninstall:
- First, disable the module:
php bin/magento module:disable Letscms_ReferralProgram
- Then uninstall the module:
php bin/magento module:uninstall Letscms_ReferralProgram
- Update the database schema:
php bin/magento setup:upgrade
- Clear the cache:
php bin/magento cache:flush
Note: Uninstalling will remove all module data including referral codes and reward records.