Hey folks, looks like an issue with Discount combinations for order + product level discounts whenever order level ‘minimum subtotal’ conditions are used.
This appears to happen for both function based and native discounts. It also seems to happen for both automatic and manual discounts.
In the manual code scenario, the issue appears as follows (YOTPO here is an 8% off all product level discount):
Hi @bkspace. Thanks for flagging this! I was able to reproduce the issue. This is expected behaviour. When the Dracaena product quantity went from 2→ 3, the order total went above 200 allowing the 20% off discount to be eligible (as per your function result). If the product discounts were applied, the order total would be less than 200, so tier 1 discount (10% off) would apply.
The tier 2 20% discount was a better value than applying the product discounts + the tier 1 10% off.
@MunaAtShopify, appreciate you taking the time to have a look.
You’re right, this does feel like the correct behaviour! In the previous failed example, if I increment the cart to a larger amount, such that the order discount still applies if the product discount(s) apply - the code is accepted: