Open
Description
Magento 1.9
Steps to reproduce (*)
- Administrator creates a new discount coupon, limited to one use;
- Two or more users insert products into their shopping cart and apply the discount using the coupon;
- Two or more users click on checkout at the same time.
Expected result (*)
- Even if pressing at the same time, some order must have been placed first;
- This order will receive the coupon discount, subsequent orders will receive some type of error saying that the coupon has already been used;
- Now the coupon that had only one use, can no longer be used.
Actual result (*)
- All users who pressed the checkout button at the same time will receive the coupon discount even with the one use limit;
- Only after simultaneous orders will the coupon be deactivated.
The problem then is that purchases made simultaneously will disregard the limit defined in the discount coupon rule. This should not happen, only one of those purchases should receive the discount.