EzyStudio ADF

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

  1. Go to Shopify Admin and navigate to Discounts in the left sidebar.
  2. Click “Create discount”.
  3. Select “Automatic discount”.
  4. In the app section, choose “Conditional Discount Function”.
  5. Name the discount “10% Off Orders Over $100”.

Step 2: Add a Condition

  1. In the rule builder, click “Add Condition”.
  2. Select the condition type: “Cart Subtotal”.
  3. Set the operator to: “Greater than or equal”.
  4. 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

  1. Set the discount type to: “Percentage”.
  2. Set the value to: 10.
  3. 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

  1. Under Targets, enable the “Order” discount class.
  2. This applies the discount to the order subtotal rather than individual line items.

Step 5: Save and Test

  1. Click “Save discount” to activate it.
  2. Open your storefront in a new tab.
  3. Add products totaling $100 or more to your cart.
  4. 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.