Last updated: August 2026
"Cart rule" shows up constantly in Shopify app listings and setup docs, usually with the assumption that you already know what one is. If you've never used cart automation before, that's not a safe assumption — and guessing wrong makes every other explanation harder to follow.
A Shopify cart rule is simpler than the term sounds: it's a condition paired with an action. When something specific becomes true about a customer's cart, the rule automatically does something about it — usually adding a product. No discount code, no manual check, no merchant watching orders come in to catch the ones that qualify.
This guide covers what a cart rule actually is, the two parts every rule is built from, and a few real examples — written for merchants setting up their first rule, not merchants already juggling several.
What is a Shopify cart rule?
A cart rule is a piece of logic your store checks every time a customer's cart changes. It watches for one condition, and when that condition is met, it triggers one action automatically.
Shopify doesn't ship this as a native admin feature — there's no built-in "cart rules" menu in default Shopify. It's the core function of rule-based cart apps like AutoCart, which sit on top of your store and watch cart activity in real time.
The plain-language version: if this happens in the cart, then do this. Everything else — the app's interface, the field names, the setup screens — is just the mechanism for defining what "this" and "this" mean for your store.
The two parts of every cart rule: condition and action
Every cart rule, no matter how it's configured, breaks down into exactly two pieces.
The condition: what has to be true about the cart
This is the trigger — the thing Shopify checks for on every cart update. Common condition types:
- Cart value threshold — the cart total crosses a dollar amount (spend $75, unlock a gift)
- Specific product in cart — a particular product or variant is present
- Product collection — any item from a chosen collection is present
- Customer tag — the shopper is tagged in a specific segment, like VIP
- Cart quantity — the cart holds a certain number of items, regardless of dollar value
A condition is either true or it isn't. There's no partial credit — a cart with $74.50 in it doesn't get 99% of a $75 threshold gift.
The action: what happens when the condition is met
This is what the rule actually does once its condition is satisfied. Common action types:
- Free gift — a product is added to the cart at $0
- Discounted product — a product is added at a reduced price or percentage off
- Customer-choice gift — the shopper picks from a small set of eligible products
- Bundle add — a complementary item is added alongside a primary purchase
- BOGO — a second unit of a purchased product (or a related one) is added under a "buy one, get one" structure
Pair one condition with one action and you have a complete rule. "If cart total exceeds $75, add a free tote bag" is a full cart rule, start to finish — nothing else required to define it.
A simple example, start to finish
Say you set a rule: condition = cart value threshold of $75, action = free gift (a travel-size candle).
- A customer adds two products totaling $60 to their cart. The condition isn't met yet — nothing happens.
- They add a third product, bringing the cart to $82. The condition is now true.
- The app checks the cart, sees the threshold is crossed, and adds the travel-size candle automatically — no code entered, no popup to click through.
- The customer sees the gift in their cart, ideally with a message explaining why it's there ("You've unlocked a free gift!").
That's the entire mechanism. The condition is a fact about the cart; the action is what the app does in response. Nothing about it requires the customer to do anything beyond shopping normally.
What happens after the rule fires
A well-built cart rule doesn't just add a product — it also handles the case where the cart stops qualifying. If that same customer removes an item and drops back to $65, the rule should automatically remove the auto-added gift, not leave it sitting in the cart at the wrong price.
This matters because a static promotion (like a one-time discount code) doesn't reverse itself. A cart rule, checked continuously, does — which is part of why "rule" is a more accurate word than "promotion" for what's actually happening.
Shopify cart rules vs. discount codes vs. manual promotions
Merchants often reach for cart rules after trying one of the alternatives below and hitting its limits.
| Discount code | Manual promotion | Cart rule | |
|---|---|---|---|
| Customer effort required | Must enter a code | None (if store-wide) | None |
| Triggers automatically on cart conditions | No | No | Yes |
| Can target a specific segment (e.g., VIP tag) | Only with separate code lists | Difficult to enforce | Yes |
| Removes itself if conditions change | No | No | Yes, if configured |
| Requires manual monitoring | No, but requires promotion | Yes — someone has to apply it | No |
Discount codes work well when you want the customer to take an action (enter a code) in exchange for savings. Cart rules work better when the offer should feel automatic — the customer shouldn't have to know a code exists to get the benefit.
Common cart rule examples for Shopify merchants
A few patterns cover most of what merchants actually set up first:
- Threshold gift with purchase — spend $X, get a free product. The most common starting rule; see our full breakdown of gift-with-purchase setups for the options beyond a basic threshold.
- BOGO on a specific product — buy a product, get a second one free or discounted. Covered step by step in our Shopify BOGO guide.
- VIP customer-tag perk — a free or discounted product that only appears for customers tagged in a loyalty segment, no separate loyalty platform required. Detailed in how to reward VIP customers without a loyalty app.
- Discounted add-on at a cart threshold — instead of a free gift, a related product appears at a reduced price once the cart qualifies, covered in our guide to automatically adding a discounted product based on cart value.
Each of these is still just one condition paired with one action — the variation is in which condition and which action you pick, not in some more complex underlying mechanism.
When you'll need more than one rule
A single rule is straightforward: it fires or it doesn't. Most stores eventually run more than one — an evergreen gift-with-purchase rule alongside a seasonal BOGO, for example — and that's where a second question shows up: what happens if a customer's cart qualifies for two rules at once?
That's a real question, but it's not one a beginner needs to solve on day one. Once you're running multiple active rules, see our guide to Shopify automation rule priority for how to decide which rule wins when more than one condition is true at the same time. Until then, one rule that works correctly is a better starting point than three rules you haven't tested together.
Setting up your first cart rule
Creating a rule is a matter of defining its two parts inside your cart automation app: pick a condition, pick an action, and set how the customer is told about it. AutoCart's rule builder walks through exactly this — condition, action, and display settings — in a few clicks, with no theme code required.
For the full click-by-click setup, including the one step merchants most often miss (enabling the app's cart display so customers can actually see why an item was added), see our step-by-step AutoCart setup guide.
Common mistakes beginners make with cart rules
- Confusing a condition with an action. "Add a free gift" describes the action, not the trigger — a rule still needs a condition defining when that gift appears.
- Setting a threshold too close to typical order size. If most carts already clear the threshold naturally, you're giving away margin on orders that would have happened anyway.
- Forgetting the removal behavior. A gift that stays in the cart after the customer drops below the threshold looks like a pricing error, not a perk.
- Starting with several rules at once. One tested, working rule beats three untested ones — especially before you've confirmed how the app behaves when conditions overlap.
Shopify cart rules: frequently asked questions
What is a cart rule in Shopify? A cart rule is a condition-and-action pair that a cart automation app checks continuously: when a specific fact about the cart becomes true (like crossing a spend threshold), the app automatically performs an action (like adding a free gift), with no code or discount code required.
Does Shopify have native cart rules? Not as a built-in admin feature. Shopify's native tools include discount codes and automatic discounts, but continuous condition-based auto-add logic — checking the cart in real time and adding or removing a product automatically — requires a rule-based app like AutoCart.
What's the difference between a cart rule and a discount code? A discount code requires the customer to know about and enter a code to get a price reduction. A cart rule triggers automatically based on cart conditions — no code, no customer action beyond shopping normally — and can also add a physical product, not just adjust price.
Do I need to know how to code to set up a cart rule? No. Rule-based apps like AutoCart use a visual rule builder — you select a condition type, an action type, and display settings from dropdowns and fields, with no theme or Liquid code involved.
How many cart rules should I start with? One. Confirm a single rule works exactly as intended — including removing itself correctly when conditions change — before adding a second. Once you're running more than one active rule, you'll also need a plan for which rule wins if two conditions are true on the same cart.
The two-part model behind every cart offer you'll set up
Every cart rule you'll ever configure, no matter which app you use or how the interface is laid out, reduces to the same two questions: what has to be true about the cart, and what should happen when it is. Once that clicks, every setup screen you encounter — thresholds, product pickers, tag selectors, action types — is just a form for answering those two questions.
AutoCart's rule builder is built directly around this model: pick a condition from cart value, specific product, collection, customer tag, or quantity; pick an action from free gift, discounted product, customer-choice gift, bundle add, or BOGO; and you have a working rule in a few minutes, no code and no Shopify Plus required.
Try AutoCart free on your Shopify store: apps.shopify.com/autocart-auto-add-to-cart

Install Now