Requests | Blesta

Requests

Coupons via URL should override on newer request

Sebastian shared this idea 2 years ago
Under Consideration

Lets say you have 2 coupons and you pass then with the URL param coupon=$value

coupon codes:

democoupon2021 - 50% (dec only)

democoupon2022 - 75% (jan only)

===== example:

- client visits url on 30 dec 2021:

https://demo.blesta.com/order/main/packages/demoform/?group_id=2&coupon=democoupon2021

- cart updates and stores democoupon2021

- user does not check out or leaves the site.

- 5 days later the client visits:

https://demo.blesta.com/order/main/packages/demoform/?group_id=2&coupon=democoupon2022

- expected result: old coupon removed, new coupon applied.

- actual result: invalid old coupon still in cart.

bug?