I need to limit a discount code so that it expires when the total value of the discount granted reaches a cumulative limit of (example amount) within one year.
@Fabian203 hello
I understand — you’d like the discount code to automatically expire once the total value of discounts given out reaches a specific amount within a year (for example, $1,000 in total discounts).
Shopify doesn’t currently support that kind of cumulative limit by default, but it can be achieved using an app like Discount Ninja or AIOD – All In One Discounts.
If you’re on Shopify Plus, we could also handle it using a custom Shopify Function or Script.
Would you like me to recommend or set up one of those options for you?
best regards
nobble
Hi @nobble, thanks for the reply. Yes, I had verified that Shopify has this limitation, as it is an advanced functionality compared to how discount codes normally work. I assume the Discount Ninja app you suggested is the green one, while I couldn’t find AOID.
Hi @Fabian203
Hypothetically you might want to tinker with customer segments , though the combination of conditions for EVERY usage possible is probably a no go.
tag orders using the discount → total value of all orders ??? → add or remove from segment → use that segment in the discount conditions itself.
There’s also using shopify-flow and the advanced admin-api action to react to orders then get the discount data and act on it.
Or the mechanic app to take custom control over discounts with scripting, no exact match but there are library examples of common automations.
Reach out to me for services if your a merchant that must have this type of automation.
@Fabian203
Yes, you’re absolutely right Shopify’s native discount system doesn’t support cumulative limits like that.
And yes, the “green” Discount Ninja app is the correct one I was referring to.
AOID (also known as Automatic Discounts & Gifts by Tabarnapp) is another app that can handle similar advanced discount conditions it’s available in the Shopify App Store if you search for “Automatic Discounts & Gifts”.
Between the two, Discount Ninja is usually more flexible for cumulative or value-based limits, so I’d recommend starting with that.
Let me know if you’d like help setting up the condition inside the app.