1

Sames as : Limiting coupon uses per customer But solution does not work. That feature worked as desired on Magento 2.4.2.

2
  • Looks like a native bug on 2.4.3.
    – RoboxFuze
    Commented Feb 10, 2022 at 7:30
  • Check my answer below. Commented Jan 20, 2023 at 16:49

2 Answers 2

2

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 &

6
  • 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.
    – Preetesh
    Commented 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.
    – Preetesh
    Commented 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
    – Preetesh
    Commented Jan 20, 2023 at 14:27
  • Running it one time is enough. Commented Jan 20, 2023 at 16:33
  • Have you added sales.rule.update.coupon.usage consumer to the app/etc/env.php file? Commented Feb 15, 2023 at 13:14
1

Confirmed. It is a native bug.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.