Hi,
For the most part Awocoupon is working fine for me. But during testing I have discovered a bug. I have set up a Gift Certificate for £10, which can be purchased as expected.
Basically, the problem is that if 2 different customers are completing different transactions at the same time, and they both enter the same gift certificate discount code and then both checkout at the same time, the discount is applied to both orders. Clearly this is not correct.
Example:
1. Customer A successfully purchases a £10 Gift Certificate (lets call it code: ABC123).
2. Customer A add products to their cart totaling £17.98.
3. At the same time Customer B also adds products to their cart totaling £17.98.
4. Customer A and Customer B both apply the £10 Gift Certificate code ABC123 to their respective carts.
5. Both carts now have a £10 reduction applied, leaving a balance of £7.98.
6. Both Customer A and Customer B proceed to checkout at the same time and pay the balance of £7.98 via Paypal.
7. Both transactions complete successfully, and both get order confirmations.
8. Both orders appear in the Orders section of the Back Office of Prestashop, timestamped 34 seconds apart (both orders have the discount applied).
9. History of Uses for the code ABC123 only shows the first use of the coupon - there is no record of it being used a second time within the AWOcoupon section of the backoffice.
10. Meaning that the purchase of a single £10 Gift Certificate has resulted in a discount of £20 being given across 2 separate transactions.
Clearly, this is not acceptable. Can anybody advise of the solution?
Many thanks in advance
Lucy
For the most part Awocoupon is working fine for me. But during testing I have discovered a bug. I have set up a Gift Certificate for £10, which can be purchased as expected.
Basically, the problem is that if 2 different customers are completing different transactions at the same time, and they both enter the same gift certificate discount code and then both checkout at the same time, the discount is applied to both orders. Clearly this is not correct.
Example:
1. Customer A successfully purchases a £10 Gift Certificate (lets call it code: ABC123).
2. Customer A add products to their cart totaling £17.98.
3. At the same time Customer B also adds products to their cart totaling £17.98.
4. Customer A and Customer B both apply the £10 Gift Certificate code ABC123 to their respective carts.
5. Both carts now have a £10 reduction applied, leaving a balance of £7.98.
6. Both Customer A and Customer B proceed to checkout at the same time and pay the balance of £7.98 via Paypal.
7. Both transactions complete successfully, and both get order confirmations.
8. Both orders appear in the Orders section of the Back Office of Prestashop, timestamped 34 seconds apart (both orders have the discount applied).
9. History of Uses for the code ABC123 only shows the first use of the coupon - there is no record of it being used a second time within the AWOcoupon section of the backoffice.
10. Meaning that the purchase of a single £10 Gift Certificate has resulted in a discount of £20 being given across 2 separate transactions.
Clearly, this is not acceptable. Can anybody advise of the solution?
Many thanks in advance
Lucy