You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an error when placing an order when using a promo code that has been used on a canceled order. This is because when you cancel an order the times_used in salesrule_coupon_usage becomes zero and it tries to insert a new entry into the database.
Preconditions (*)
Using OpenMage 19.4.5
Steps to reproduce (*)
Log in to a customer account
Place an order and use a promo code
Cancel the order
Try to place another order with the same promo code and you will get an error when submitting the order
Expected result (*)
Order placed successfully
Actual result (*)
Integrity constraint violation: 1062 Duplicate entry '10961-661' for key 'PRIMARY', query was: INSERT INTO salesrule_coupon_usage (coupon_id, customer_id, times_used) VALUES (?, ?, ?) in /cache/lib/Zend/Db/Statement/Pdo.php:235
The text was updated successfully, but these errors were encountered:
There is an error when placing an order when using a promo code that has been used on a canceled order. This is because when you cancel an order the times_used in salesrule_coupon_usage becomes zero and it tries to insert a new entry into the database.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
salesrule_coupon_usage
(coupon_id
,customer_id
,times_used
) VALUES (?, ?, ?) in /cache/lib/Zend/Db/Statement/Pdo.php:235The text was updated successfully, but these errors were encountered: