Online retailer
A store-wide order minimum that exempts store-credit customers
A $5 store-wide order minimum, automatically waived for customers with store credit — built by bridging a segment, two Flows and a checkout validation function with a single tag.
- Client
- Online retailer
- Industry
- Online retail
- Timeline
- Custom build
- Services
- Checkout and extensions, Shopify Functions, Shopify Flow automation
The challenge
The merchant wanted a $5 minimum order across the whole store — but not for customers spending store credit. Shopify's cart and checkout validation function can enforce a minimum, but it has no visibility of a customer's store-credit balance, so it could not tell who to exempt.
The merchant’s ask sounded simple: a $5 minimum order across the whole store — but customers spending store credit should be exempt. Someone redeeming a small credit balance should not be blocked by a minimum meant for everyone else.
Where Shopify stopped short
A store-wide minimum is exactly what Shopify’s cart and checkout validation function is for, and the first half was straightforward.
The problem was the exemption. The validation function has no visibility of a customer’s store-credit balance — that value simply is not in scope for it. So the function could enforce the minimum, but it could not tell who to let through.
There was a second wall too. Store credit is not something Shopify Flow can trigger on directly either — you cannot start a Flow from “customer has store credit.”
Bridging it with a tag
Both gaps had the same shape: the platform can’t see store credit there, but it can see it somewhere else. So we used a customer tag as the bridge between the two.
- A customer segment does what Flow and the function can’t — it can filter customers by store-credit balance. So we defined a segment of “customers with store credit.”
- Two Shopify Flows keep a tag in sync with that segment: one adds the tag when a customer enters the segment, the other removes it when they leave (their credit is used up).
- The validation function reads the tag. It can’t see store credit, but it can see tags — so it enforces the $5 minimum for everyone except customers carrying the store-credit tag.
The result
Customers spending store credit sail through; everyone else meets the $5 minimum — and it all stays current on its own, because the Flows keep the tag in step with each customer’s balance. Two Shopify limitations, joined by a single tag into one clean rule that needs no manual upkeep.
Next case study
Per-product minimum order quantities across a 40,000-product catalogue
Ready to build a store worth talking about?
Tell us where your store is today and where you want it to go. We reply within two working days with a clear next step.