Regenerate coupon uses via command line so coupons cannot be used twice.
This can be used if the Message Queue consumer sales.rule.update.coupon.usage
wasn't running successfully and coupon usages haven't been recorded.
Make sure that the consumer runs again after this command has been executed.
-
Install it into your Magento 2 project with composer:
composer require integer-net/magento2-regenerate-coupon-uses
-
Enable module
bin/magento setup:upgrade
Execute on the command line:
bin/magento coupon:usage:regenerate
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.