Hi everyone,
I’ve run into a strange issue with Shopify Functions and order discounts.
When I the Shopify function returns an order discount with a value of 0, Shopify throws an error saying:
“This discount can’t be combined with your existing discounts.”
But here’s the irony:
- If I set the discount to
0.01(fixed amount), it works fine. - If I enable “combine with other discounts” and keep the value as
0, it also works. - If I manually create a discount in the admin with 0% value and keep “combine with other discounts” off, it works too.
So the problem only happens with function-generated zero-value order discounts with “combine with order discounts” off.
My use case is that I need the discount to be zero — it’s not meant to reduce the price, but to trigger some actions.
Questions:
- Is this a recent change in how Shopify validates discount functions?
- Is there a way to return a 0-value order discount from a function without enabling “combine with other discounts” disabled?
I’ve attached screenshots showing the checkout error and the function output for reference.
Any insights or workarounds would be really helpful!
Thanks ![]()

