Quick Start
In this guide, you will create a conditional discount that gives customers 10% off orders over $100. By the end, you will have a working automatic discount on your store.
Step 1: Create a New Discount
- Go to Shopify Admin and navigate to Discounts in the left sidebar.
- Click “Create discount”.
- Select “Automatic discount”.
- In the app section, choose “Conditional Discount Function”.
- Name the discount “10% Off Orders Over $100”.
Step 2: Add a Condition
- In the rule builder, click “Add Condition”.
- Select the condition type: “Cart Subtotal”.
- Set the operator to: “Greater than or equal”.
- Set the value to: 100.
This tells the function to only apply the discount when the cart subtotal is $100 or more.
Step 3: Configure the Discount
- Set the discount type to: “Percentage”.
- Set the value to: 10.
- Set the message to: “10% off orders $100+”.
The message is what customers see at checkout next to the applied discount.
Step 4: Set the Target
- Under Targets, enable the “Order” discount class.
- This applies the discount to the order subtotal rather than individual line items.
Step 5: Save and Test
- Click “Save discount” to activate it.
- Open your storefront in a new tab.
- Add products totaling $100 or more to your cart.
- Proceed to checkout — you should see the “10% off orders $100+” discount applied automatically.
Resulting Configuration
Behind the scenes, the rule builder generates a JSON configuration that the discount function reads at checkout. Here is what the configuration for this discount looks like:
{
"version": "1.0",
"strategy": "first",
"ruleGroups": [
{
"id": "rg_001",
"name": "10% Off Orders Over $100",
"enabled": true,
"conditionLogic": "and",
"conditions": [
{
"type": "cartSubtotal",
"operator": "greaterThanOrEqual",
"value": 100
}
],
"targets": {
"order": {}
},
"discount": {
"type": "percentage",
"value": 10,
"message": "10% off orders $100+"
}
}
],
"rejectionRules": []
}
You do not need to edit this JSON directly — the rule builder UI handles it for you. This is shown here so you can understand the underlying data model.
What’s Next?
- Core Concepts — Understand the key ideas behind rule groups, conditions, strategies, and more.
- Discount Functions — Explore all 4 discount function types in detail.