Coupons are applied Before Promotions

Created on 17 December 2020, almost 4 years ago
Updated 30 August 2023, about 1 year ago

Summary

Coupons are applied before other promotions, which may results (in our case) in some miscalculation of final price.

Expected

We have for instance a product which costs '90' (currency doesn't matter)

We have a first promotion (with no coupon)
- make it 10 minus (price is now 80)

Another promotion with a coupon
- take off 50% (price is now 40)

And a final coupon (for specials customers)
- take 25% more (price is now 30 which is good)

What really happens

Initial price is 90

Coupons first so :

- take off 50% (price is now 45)
- take 25% more (price is now 33,75)

And finaly others promotions

- make it 10 minus (price is now 23,75 which is bad)

My solution

I made a patch which load all promotions, and sort them by weight (defined in admin panel) before apply them on the order.

πŸ› Bug report
Status

Closed: works as designed

Version

2.19

Component

Promotions

Created by

πŸ‡«πŸ‡·France Guillaume Aveline

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024