Create a discount rule

Set a Discount Rule's customers, coupon, limits, conditions and discount type, fix save warnings, and see why a coupon code is refused.

Discount Rules lower the price in the cart, a draft, a quote or an admin order. They can apply automatically or when a customer enters a coupon code.

A Discount Rule has three parts:

  • Discount Information: the name, who can use it, dates, coupon code and limits.
  • Conditions: which carts qualify. The cart must match these before the rule applies.
  • Actions: Discount Options (what kind of discount and how much) and which items get the discount.

Discount Rules are different from Sales. A Sale changes the product's price before it reaches the cart. A Discount Rule then takes money off in the cart. See How discounts stack.

❗️

Test every rule before customers see it

Set Admin Only to Yes, or limit the rule to a test Customer Group, until it works.

What do you want to do?

TaskWhere
Name a rule, pick who gets it, set dates, a coupon code and limitsDiscount Information (below)
Choose which carts qualifyConditions (below) and Discount Conditions
Set the discount type, amount and which items get itActions: Discount Options (below)
Find out why a customer's coupon code was refusedWhen a Coupon Code Is Refused (below)
Copy a ready-made rule, such as Buy X Get Y or a cart-total discountDiscount rule examples
Create many single-use coupon codesCreate single-use coupon codes for an event
See how rules combine with Sales and each otherHow Discounts Stack
Fix a rule that doesn't applyTroubleshoot sales and discount rules
Lower a product's price before the cart insteadCreate a sale

Discount Information

In the Zoey Admin, go to Promotions > Discount Rules. Click a rule to edit it, or click Create a Discount Rule.

Discount Rules list sorted by Priority
Discount Information tab of a Discount Rule
FieldWhat it does
Discount NameInternal name. Customers don't see it. Pick a name your team will recognize: it shows in the order grid's Sales Rule Applied column, the Promotions Applied list on drafts and quotes, and the Coupons report.
DescriptionInternal note. Say what the rule is for and who asked for it.
StatusActive runs the rule (from the From Date, if set). Inactive turns it off. Keep it Inactive until you've tested it.
Admin OnlyYes: the rule only applies to orders, drafts and quotes your staff create in the Zoey Admin, never at storefront checkout. Good for testing and for staff-only deals.
Always Apply to All CustomersYes: every Customer Group gets the rule, including groups you add later. Yes, Only Logged In Customers: every group except NOT LOGGED IN. No: pick groups and Accounts below.
Customer GroupsGroups that can use the rule. Guests are in NOT LOGGED IN.
AccountsSpecific Accounts that can use the rule, whatever their Customer Group. A Contact qualifies if their Customer Group or their Account is selected.
CouponNo Coupon: the rule applies by itself when the cart qualifies (an automatic rule). Specific Coupon: the customer must enter a coupon code. Type the code in Coupon Code (letters and numbers only), or tick Use Auto Generation to create many codes: leave Coupon Code empty, save, then open the Manage Coupon Codes tab to make the codes. See Single-use codes for an event.
Uses per CouponHow many orders in total can use each coupon code. Test orders count too. With auto-generated codes, the limit is per code. Leave empty for unlimited.
Uses per CustomerHow many orders each logged-in Contact can use this rule on. Leave empty for unlimited. Guests aren't counted, so remove NOT LOGGED IN if the limit matters.
From Date / To DateThe rule runs from the start of the From Date to the end of the To Date, in your store's time zone. Empty means it starts now and never ends.
PriorityThe order rules apply in: 0 runs first, then 1, 2 and so on. Give rules that affect each other different numbers. It matters when you use Stop Further Rules Processing and when two rules discount the same items.
📘

Coupon stopped working?

Check Uses per Coupon and Uses per Customer. Leave them blank for unlimited uses. Test orders count, so a limit of 1 can already be used up before a customer tries the code. Uses per Customer only applies to logged-in customers. The customer now sees the reason: see When a coupon code is refused.

Uses per Coupon and Uses per Customer on a discount rule

Conditions: which carts qualify

In the panel on the left, select Conditions.

Conditions decide whether the whole cart gets the rule. If you leave them empty, every cart qualifies.

Conditions don't choose which items are discounted. That's the job of Which items get the discount on the Actions tab.

Every rule starts with If ALL of these conditions are TRUE. Click the bold words to change them (ALL or ANY, TRUE or FALSE). Click the green + to add a line, and the red − to remove one.

See Discount Conditions for every condition type and examples.

Condition types on the Conditions tab
📘

Bundles

When adding a discount to a bundle product, include the SKU of the bundle and every SKU inside it.

Actions: Discount Options

In the panel on the left, select Actions.

Discount Options on the Actions tab
FieldWhat it does
Discount TypeThe kind of discount. See the next table.
Discount AmountThe number for the discount: 10 means 10% or $10, depending on Discount Type. For Buy X get Y it is Y, the number of free units. A rule with 0 here won't save, unless it gives free shipping or stops further rules.
Maximum Qty Discount is Applied ToThe most units of each matching item that get the discount. Leave empty or 0 for no limit. On Buy X get Y it counts paid and free units together.
Discount Qty Step (Buy X)See Discount Qty Step (Buy X) below.
Apply to Shipping AmountYes: the discount also takes money off the shipping charge, not only the items. No: shipping is not discounted.
Free ShippingNo: no change. For matching items only: items matched under Which items get the discount ship free. For shipment with matching items (Entire Cart): the whole shipment ships free. Do not allow free shipping method: hides the Free Shipping method while this rule is in the cart. Table Rate and the Free Shipping method can go to $0; Flat Rate only when its Allow Discount Rules with Free Shipping to Set Price to $0 setting is Yes; live UPS, FedEx and USPS rates never do. See Free Shipping in Troubleshooting.
Stop Further Rules ProcessingYes: every rule that runs after this one is skipped for the items this rule discounts. Rules run in Priority order, 0 first, so give this rule a lower Priority number than the rules it should stop.
Combine with Catalog Sales RulesYes: items already on Sale can also get this discount. No: items with a Sale price from Promotions > Sales are skipped.
Exclude Customer/Account Specific Priced ItemsYes: items with an Account or Contact specific price don't get this discount, and they don't count toward the rule's quantity or subtotal conditions.

Discount Type options

Discount TypeResult
Automatically Add Product to CartAdds a product to the cart when the cart qualifies. Use Discount Amount to make it free or cheaper. See Auto-Add Product To Cart.
Automatically Add Product to Cart (Matching QTY)Same, but the added quantity follows the qualifying quantity (for example, one deposit per bottle). See Auto-Add Product (Matching QTY).
Buy X get Y free (discount amount is Y)For each X units bought, Y more units of the same SKU are free. See Buy X Get Y Free.
Fixed amount discount (per cart row item)Takes a fixed amount off each matching unit.
Fixed amount discount for whole cartTakes one fixed amount off the matching items, split across them.
Percent of most expensive product in cart (ignoring qty)Discounts the matching item with the highest unit price. See Discount Highest Price Item.
Percent of most expensive product in cart (using qty)Discounts the matching cart line with the highest line total.
Percent of product price discountTakes a percent off each matching item. New rules start with this type.
Percent of whole cartTakes a percent off all matching items together.
❗️

Only one coupon code per order

A customer can enter one coupon code per order. Automatic rules (No Coupon) can still apply alongside it. See How discounts stack.

Priority and Stop Further Rules Processing

The Priority field sets the order rules apply in. 0 runs first, then 1, then 2.

When a rule has Stop Further Rules Processing set to Yes, every rule that runs after it is skipped for the items it discounts. That includes rules with the same Priority number that happen to run after it, and rules with the same number run in an unpredictable order. Give the stopping rule a lower number than the rules it should stop.

Discount Qty Step (Buy X)

What it does depends on Discount Type.

Buy X get Y free

  • Qty Step is X: the units the customer pays for.
  • Discount Amount is Y: the units they get free.
  • Both must be the same SKU on the same cart line.
  • The customer needs X + Y units in the cart to get Y free.
  • Example, "buy 2, get 1 free": Qty Step 2, Discount Amount 1. 3 in cart = 1 free. 5 in cart = 1 free. 6 in cart = 2 free.
  • Y can't be larger than X. "Buy 1, get 2 free" gives nothing.

Percent or fixed amount per item

  • Only full steps get the discount. The discounted quantity is rounded down to a multiple of the step.
  • Example, 10% off with Qty Step 5: 4 in cart = no discount. 5 = 5 discounted. 7 = 5 discounted. 12 = 10 discounted.
  • Want "10% off every unit once they buy 5"? Leave Qty Step empty and use a Products subselection condition (total quantity equals or greater than 5) instead.

Other discount types: leave Qty Step empty.

Maximum Qty Discount is Applied To caps the units per cart line before the step is applied. On Buy X get Y it counts paid and free units. "Buy 2 get 1, once per order": Max Qty 3.

Which items get the discount

Below Discount Options on the Actions tab, the section Apply the rule only to cart items matching the following conditions picks the items the discount applies to. Leave it empty to discount every item in a qualifying cart.

Combine and Exclude settings, and Which items get the discount with a Category line

Click the green + and choose from:

  • Cart Item Attribute: Price in cart, Quantity in cart, Row total in cart
  • Product Attribute: Attribute Set, Category, SKU, and any product attribute with Can Be Used for Building Promotions > Discount Rules and Sales ticked
  • Product Formula > Stock Qty Greater than: limits the discount to stock above a level. Example: "Stock Qty Greater than 50" discounts only the units you have beyond 50, and "greater than 0" discounts only what you have in stock. See Discount In Stock Products Only.
🚧

Categories, variations and lists

  • Category matches only products assigned to that exact category. A parent category doesn't include its subcategories. Choose is one of and list every category you want.
  • Configurable products: the variations (child products) must be in the category too. Assign them, or use SKU.
  • More than one SKU or category? Use is one of, not is. If you type a comma list with is, Zoey changes it to is one of when you save.

Saving a Rule

Click Save (or Save and Continue Edit). Zoey checks the rule when you save it.

Blocked until you fix it

  • Discount Amount is 0 on a discount type that needs an amount. Enter the amount. Rules that only give free shipping, or that stop further rules, can still save with 0.
  • A condition is left as ... (no value) on the Conditions or Actions tab. Zoey shows empty values in red. Click the ... to enter a value, or remove the line.

Blocked until you confirm it

  • An Active rule with no coupon that takes 100% off and reaches admin orders (Admin Only is Yes, or Auto-Apply Discounts To Items is on in your Admin Create Orders settings). Those orders would be invoiced at $0. If you meant it, tick Yes, apply this 100% discount automatically (Confirm Automatic 100% Discount) and save again. If you meant a code staff type in, set Coupon to Specific Coupon.

Warnings (the rule still saves)

Warnings shown after saving an Inactive rule with no label
  • The rule is Active, needs no coupon, has no conditions and covers all Customer Groups, so every order gets it.
  • Uses per Coupon is 1 on a single typed code. The code stops after its first order, and a test order counts. For one code per person, use auto-generated codes.
  • Discount Qty Step (Buy X) is very large. Check it's the number you meant.
  • An Automatically Add Product to Cart rule with a 0 discount. The added product is charged at full price. Enter 100 to make it free.
  • The rule is Inactive, so it won't apply yet.
  • No label on the Labels tab, so the cart and order show the discount without its name.
  • A Category condition uses a category with no products of its own. Only its subcategories have products, and they aren't included. Add the subcategory IDs.
  • A Contact, Account or cart condition uses is with a comma list. Zoey doesn't change these, because a value such as "Acme, Inc" can contain a comma. Change it to is one of if you meant a list.

Then run a test order (with Admin Only set to Yes, or as a Contact in a test Customer Group) before you set the rule live for everyone.

When a Coupon Code Is Refused

The customer sees why a code didn't work:

Customer seesWhy
Coupon code "X" has expired.After the rule's To Date.
Coupon code "X" is not active yet. It starts on (date).Before the From Date.
Coupon code "X" has already been used the maximum number of times.Uses per Coupon reached.
You have already used coupon code "X" the maximum number of times.Uses per Customer reached.
Coupon code "X" is not available for your account.Their Customer Group or Account isn't on the rule. Guests are asked to sign in and try again.
Coupon code "X" requires a subtotal of (amount).The subtotal condition isn't met.
Coupon code "X" does not apply to the items in your cart yet.Other conditions aren't met.
Coupon code "X" is no longer available.The rule is Inactive.

Customers never see your conditions or rule names.

Your staff see more when they enter a code on a draft, quote or admin order: the rule name and ID, the exact limit (and the last orders that used the code), the dates, and what to change, for example "Raise Uses per Coupon on the rule to allow more uses." The reason shows in a red banner at the top of the page, and also stays in red under Apply Discount / Markdown in the order totals until the next change to the order.

Refused coupon reason in red under Apply Discount / Markdown in the order totals

Find and Review Rules

The Discount Rules list shows Applies To, Coupon, Uses, Discount, Stops Further Rules and Warnings for every rule. It is sorted by Priority, so the order you see is the order rules run in.

Use the Mentions SKU or Category ID filter to find every rule that names a SKU or category, for example before you retire a product. It matches whole entries, so 12 doesn't match 112.

Each rule has an Audit Log tab. It shows who changed what, and when.

Audit Log tab on a Discount Rule

To see which rules an order got, add the Sales Rule Applied column to the order grid (Edit Columns). It shows each rule's name and ID, for example Trade Show 2027 – $50 off (#37). On a draft, admin order or quote, the Promotions Applied list under the totals shows each rule with its name, ID, type, amount and coupon code (or Automatic).

Promotions Applied list under the order totals
Order grid with the Sales Rule Applied column

The Coupons report totals uses and discount by rule, including automatic rules.

Carts, Drafts and Quotes

See How discounts stack for when rules apply to storefront carts, drafts, quotes and admin orders.

Discount Labels (Optional)

You can add a label for the Discount Rule which will be displayed in cart to describe the discount they are receiving.

In the panel on the left, select Labels.

You can enter a Default Rule Label for All Store Views which will be displayed in the Order Summary for all store languages.

You can also set a discount label for each language on your store.

Generate and Export Codes (Optional)

Once you have saved your rule with Use Auto Generation ticked, go back into it and open Manage Coupon Codes. You can now put together the structure of what your codes will look like:

  • Coupon Qty *
  • Code Length * (excluding prefix, suffix and separators)
  • Code Format *
  • Code Prefix
  • Code Suffix
  • Dash Every X Characters

Click Generate to create.

Below this area you will find all the generated codes as well as information on their usage. This can be exported as well as deleted. For a worked example, see Single-use codes for an event.

Related articles


Did this page help you?