Sames as : Limiting coupon uses per customer But solution does not work. That feature worked as desired on Magento 2.4.2.
2 Answers
Affected products and versions
Adobe Commerce (all deployment methods) 2.4.3 and above
Issue
Merchants set up a coupon for single use and customers are able to use it multiple times.
Cause
Merchants do not have sales.rule.update.coupon.usage consumer set up and running that results in improper behavior.
Solution
Add the sales.rule.update.coupon.usage consumer to the app/etc/env.php file.
...
'cron_consumers_runner' =>
array [
'cron_run' => true,
'max_messages' => 20000,
'consumers' =>
array [
'sales.rule.update.coupon.usage'
]
],
...
Run this command - bin/magento queue:consumers:start sales.rule.update.coupon.usage &
-
I am facing this issue in 2.4.5-p1 also. where uses per coupon and per customer both are set to 1. Even after using coupon for once, again most of the time again applying coupon is success.( Sometimes it worked and throws error). Using full page cache. Querty: is this a exiting issue in 2.4.5-p1 also and does the above sol with work.– PreeteshCommented Jan 20, 2023 at 13:18
-
and what is that command for. what this command will do. Is it for 1 time or every time we need to run. Do we also need to run this cmnd in prod for once. and magento doc experienceleague.adobe.com/docs/commerce-knowledge-base/kb/… not mentioned of this cmd any reason.– PreeteshCommented Jan 20, 2023 at 13:25
-
Does this command related with below cron and if yes than what time interval in general we need to set here and what time intervale we need to set if client is testing in every 30 sec to 1 min with same coupon. and how it is different for experienceleague.adobe.com/docs/commerce-knowledge-base/kb/… Cron configuration options for group:consumers Generate Schedules Every Schedule Ahead for Missed if Not Run Within Use Separate Process– PreeteshCommented Jan 20, 2023 at 14:27
-
-
Have you added sales.rule.update.coupon.usage consumer to the app/etc/env.php file? Commented Feb 15, 2023 at 13:14
Confirmed. It is a native bug.
-
do you have a link to further information about this bug i.e. a github issue?– pajCommented Mar 16, 2022 at 16:57
-
2