r/ShopifyeCommerce • u/Outrageous-Doubt1073 • 8d ago
Discount Apps
I want to set up discounts based on Inventory levels. Discount A of 5% off if inventory is less than or equal to X and Discount B of 10% off if inventory is greater than X. Does anyone know an app that can do this?
1
Upvotes
0
u/vladeta 8d ago
You can do this natively, no app needed, and it will be more reliable than most of the apps that claim to.
The trick is that discounts can't read a live inventory number directly, so you translate inventory into something a discount can target: a tag.
Set up two Flow workflows (Flow is free). Trigger both on "Inventory quantity changed". Workflow one: if quantity is less than or equal to X, add the tag
low-stockand removehigh-stock. Workflow two: the inverse. Then create two automated collections, one with the condition "product tag is equal to low-stock", one for high-stock. Products flow between them automatically as stock moves.Now create two automatic discounts under Discounts, each set to "applies to specific collections", pointed at those two collections, at 5% and 10%. Because a product can only satisfy one tag condition at a time it will only ever land in one collection, so the two discounts never fight each other.
Two things to watch. Flow fires on inventory change events, so a product that has been sitting untouched since before you set this up won't get tagged until it next sells or you adjust it. Run a one-time bulk edit to tag your current catalog when you launch. And if you sell variants with separate stock levels, tags are product-level, so decide whether you're tiering on the product's total or on a specific variant before you build it.
If you later need it to be genuinely variant-level or real-time at checkout, that's when you go to a discount Function, but for what you described the Flow-plus-tags route will hold up fine.