This extension allows Magento 2 store owners to communicate coupon usage via email. It integrates seamlessly with the Magento 2 sales rule configuration, providing an additional option to send email notifications upon coupon usage.
- Magento 2.4.x or later
- PHP 7.3 or later
- Access to the server command line
- Open your terminal application.
- Navigate to the root directory of your Magento 2 installation.
- Add the GitHub repository to your
composer.json
:
composer config repositories.coupon-usage-communicator vcs https://github.com/michaelharper/Coupon-Usage-Communicator
- Require the extension:
composer require michaelharper/coupon-usage-communicator:dev-main
- Enable the module:
php bin/magento module:enable MichaelHarper_CouponUsageCommunicator
- After Composer finishes updating, run the following Magento CLI commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
If you prefer manual installation:
- Download the extension files from the GitHub repository.
- Create a directory app/code/MichaelHarper/CouponUsageCommunicator in your Magento 2 installation.
- Extract the downloaded files into this directory.
- Enable the module:
php bin/magento module:enable MichaelHarper_CouponUsageCommunicator
After installing the Coupon Usage Communicator extension, you need to perform some configuration steps to enable and use its features.
- Go to
Stores
>Configuration
>Sales
>Sales
>Coupon Usage Communicator
in your Magento Admin Panel. - Set
Enable Coupon Usage Communication
toYes
to activate the extension.
- Logging is optional and is primarily recommended for debugging purposes.
- Enable it if you need to troubleshoot or monitor the extension's activities.
- coupon_usage_communicator.log will be created in the Magento log directory
- Navigate to the cart rule where you want to enable coupon usage communication.
- You will find a new section added by the extension. Toggle
Enable coupon usage communication
toYes
. - Specify the email addresses that should receive notifications about coupon usage.
By following these steps, you will have successfully configured the Coupon Usage Communicator extension for your Magento 2 store.
If you find Couon Usage Communicator useful and would like to support its development, consider making a donation:
Coupon Usage Communicator is licensed under the MIT License. See the LICENSE file for more details.