integer-net / magento2-regenerate-coupon-uses
Regenerate coupon uses via command line so coupons cannot be used twice.
Installs: 1 324
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 10
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~8.1
- magento/framework: ^103.0.0
Requires (Dev)
- magento/magento-coding-standard: @dev
- pds/skeleton: ^1.0
- phpro/grumphp: ^v0.21.0
- phpstan/phpstan: ^0.12.0
- phpunit/phpunit: ^6.0|^9.0
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-10-25 08:26:57 UTC
README
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.
Installation
-
Install it into your Magento 2 project with composer:
composer require integer-net/magento2-regenerate-coupon-uses
-
Enable module
bin/magento setup:upgrade
Usage
Execute on the command line:
bin/magento coupon:usage:regenerate
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email avs@integer-net.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.