Page 1 of 1
Change the order in which coupons are applied
Posted: 03 Mar 2018, 07:09
by ntnsapre
If I have two coupons, one a PercentRebate and the other FixedRebate. Is there a way to force the order - such that the PercentRebate is always applied first, followed by the FixedRebate? At the moment, no matter what order I apply the coupons, the FixedRebate is applied first, followed by the PercentRebate.
---------------
Aimeos version: 2017.10
PHP version: 7.1
Package: Laravel 5.5
Environment: Linux
Re: Change the order in which coupons are applied
Posted: 03 Mar 2018, 17:44
by aimeos
Hm, according to the code, the coupons should be applied in the order they are added to the basket:
Add:
https://github.com/aimeos/aimeos-core/b ... e.php#L484
Update:
https://github.com/aimeos/aimeos-core/b ... on.php#L71
Their order is never change and the associative array keeps the order
Re: Change the order in which coupons are applied
Posted: 04 Mar 2018, 04:02
by ntnsapre
Please see attached. If the 20% Discount is applied first, and the 100 USD rebate second, the total should be 1100 and the total discount should be 400.
Re: Change the order in which coupons are applied
Posted: 04 Mar 2018, 12:37
by ntnsapre
Is there any other information you need?
Re: Change the order in which coupons are applied
Posted: 04 Mar 2018, 17:25
by aimeos
Re: Change the order in which coupons are applied
Posted: 05 Mar 2018, 03:28
by ntnsapre
Yes, it has been fixed, thank you very much!