How to Create Dynamic Discount Rules on Shopify (Without Code)
Shopify's built-in discount system handles simple cases — percentage off, fixed amount, free shipping. But when you need tiered pricing, tag-based deals, or discounts that stack intelligently, you hit a wall.
Shopify Functions unlock advanced discount logic at checkout speed. Here's how to use them without writing code.
5 Discount Rule Types You Can Build
1. Tiered Quantity Discount
Reward bulk buying with escalating discounts.
| Quantity | Discount |
|---|---|
| 3–5 items | 10% off |
| 6–10 items | 15% off |
| 11+ items | 25% off |
Tiers are unlimited — add as many as you need. Target specific collections or apply store-wide.
2. Tag-Based Discount
Give specific customer segments special pricing.
Examples:
- Customers tagged
vipget 20% off everything - Customers tagged
employeeget 40% off - Customers tagged
wholesaleget tiered wholesale pricing
Multiple tag rules can coexist. Rulefy resolves conflicts with a configurable stacking strategy (highest discount wins, or stack them).
3. Collection-Wide Percentage Discount
Run a sale on an entire collection without editing every product.
Example: "Summer Sale — 30% off everything in the 'Clearance' collection."
This targets products dynamically — add a product to the collection and it automatically gets the discount.
4. Buy X Get Y Discount
The classic promotion: buy a certain quantity, get a bonus item at a discount.
Example: "Buy 2 t-shirts, get 1 free from the 'Basics' collection."
Configure the trigger quantity, the reward quantity, and the discount percentage (100% for free).
5. Spend Threshold Discount
Incentivize larger carts with minimum-spend rewards.
Example: "Spend $100+, get 15% off your entire order."
Multiple tiers work too:
- Spend $50 → 5% off
- Spend $100 → 10% off
- Spend $200 → 20% off
How Stacking Works
When multiple discount rules match the same cart, Rulefy needs a strategy:
- Highest wins: Only the single best discount applies (safest for margins)
- Stack all: All matching discounts combine (most aggressive)
This is a global setting you control from the Rulefy dashboard.
Why Not Just Use Shopify's Built-In Discounts?
Shopify's native discounts can't do:
- Dynamic tiers (they're fixed per discount code)
- Tag-based targeting (no customer segmentation)
- Automatic stacking strategies
- Condition combinations (collection + tag + quantity)
Functions fill these gaps, and Rulefy gives you the UI to configure them.
Getting Started
- Install Rulefy from the Shopify App Store
- Navigate to the Discounts section
- Create your first rule (try a tiered quantity discount)
- Test with the dry-run simulator
- Activate — the discount goes live instantly
No code, no CLI, no deploy. Just rules that work.