Change the order in which coupons are applied
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Change the order in which coupons are applied
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
---------------
Aimeos version: 2017.10
PHP version: 7.1
Package: Laravel 5.5
Environment: Linux
Re: Change the order in which coupons are applied
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
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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Change the order in which coupons are applied
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.
- Attachments
-
- scr.png (13.93 KiB) Viewed 2391 times
Re: Change the order in which coupons are applied
Is there any other information you need?
Re: Change the order in which coupons are applied
That change fixed the problem for us:
https://github.com/aimeos/aimeos-core/c ... 44615852f5
https://github.com/aimeos/aimeos-core/c ... 44615852f5
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Change the order in which coupons are applied
Yes, it has been fixed, thank you very much!