Discount function · Plan: Basic
How do I give 10% off, or $10 off, when the cart total is over $100?
Create a discount function with an order discount rule and a cart total condition. Choose a percentage or a fixed amount. It applies automatically at checkout on every Shopify plan, and you can stack several thresholds as separate rules.
- Function typeDiscount
- Plan neededBasic
- Shopify PlusNot required
- TemplateShips in the app as "Cart total discount"
- Updated
What the shopper sees
Once the subtotal passes 100, checkout shows an automatic order discount of 10. If they remove items and drop below the threshold, the discount is removed. No code to type.
How the rule is built
The Cart total discount template creates an order discount rule with cart total ≥ 100 and a fixed amount of 10. Switch the value to a percentage for “10% off orders over 100”.
Add more rules for more thresholds:
| Condition | Value |
|---|---|
| Cart total ≥ 100 | 10 off |
| Cart total ≥ 200 | 25 off |
| Cart total ≥ 500 | 15% off |
Variations
- Only count some products toward the threshold. Use the amount-sum aggregates (amount per collection, per tag, per product) instead of cart total, so gift cards or sale items do not count.
- Discount only certain lines once the threshold is met. Make it a product discount with a cart total condition plus a line condition on a collection: “spend 100, get 20% off accessories”.
- Only in one channel. Add a sales channel condition for online store or Point of Sale.
- Only for a segment or market. Set customer eligibility on the discount to a customer segment or a market.
Limits to know
- Cart total is the subtotal Shopify passes to the Function, before shipping and before this discount.
- Order discounts combine with product and shipping discounts according to the combines-with settings.