Magento 2, a powerful e-commerce platform, offers a coupon generation feature. However, sometimes users encounter issues with auto-generated bulk coupons. In this blog post, we’ll take a closer look at the details of this problem and offer practical solutions.
If you haven’t created the rule properly, please refer to this guide
after clicking the Generate button, you will get a message something like this:-
Message is added to queue, wait to get your coupons soon
Solution 1:-
To see a list of all users, type the following command in the terminal.
php bin/magento queue:consumers:list
The command above will provide an output list like this:
product_action_attribute.update
product_action_attribute.website.update
exportProcessor
codegeneratorProcessor
sales.rule.update.coupon.usage
sales.rule.quote.trigger.recollect
staging.synchronize_entity_period
media.storage.catalog.image.resize
matchCustomerSegmentProcessor
product_alert
placeOrderProcessor
media.content.synchronization
media.gallery.renditions.update
media.gallery.synchronization
quoteItemCleaner
inventoryQtyCounter
nosto_product_sync.delete
async.operations.all
After that, execute the following command.
php bin/magento cron:run
php bin/magento queue:consumers:start codegeneratorProcessor
php bin/magento indexer:reindex
Solution 2:-
It’s possible that the issue might be in your search engine, you can check your instance search engine by this command:-
php bin/magento config:show catalog/search/engine
output:-
elasticsearch7
Now change your search engine from elasticsearch7 to mysql by using the below command:
php bin/magento config:set catalog/search/engine mysql --lock-env
output:-
Value was saved in app/etc/env.php and locked.
If you have any questions or concerns regarding this solution, please feel free to share them in the comments section below.
Thank you!