[SOLVED][CONFUSION] Discount combinations: order discount with minimum subtotal

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):

Would be great if someone from the discount(s) team could take a look :slight_smile:. Am happy to share logs, function ids etc, just shoot me a DM!

1 Like

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.

Let me know if this helps!

1 Like

@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:

I think the confusion stems from my initial testing with the manual code, but this now makes sense to me, thank you.