Skip to main content

Set Coupon Conditions

CoreLast updated Nov 30, 2026Screenshots from EverShop 2.4

Limit an EverShop coupon to the carts and customers you choose, such as "orders of $40 or more".

Before you start​

  • Conditions are part of a coupon. They are in the Order conditions and Customer conditions cards, below Discount Type. To create the coupon itself, see Create a Coupon.
  • A coupon applies only when every condition is met. A field left at 0 or empty is not a condition.
  • Conditions decide whether a cart can use the coupon. They do not decide which products get the discount: the discount type does. See Coupon Types.
  • Amounts are in your store currency.

Steps​

  1. Go to Promotion › Coupons and click the coupon code to open the coupon. For a new coupon, click New Coupon.

  2. In Order conditions, enter a Minimum purchase amount, a Minimum purchase qty, or both. See Minimum amount and quantity.

  3. Optional: To require certain products, click Add product below Order must contain products matching all conditions below. A new row appears.

  4. In the row, choose a Key and an Operator. Each key works with only some operators. See Products the order must contain.

  5. In the Value column, click the link: Choose Categories, Choose Collections, Choose Attribute Groups or Choose SKUs. Click Select next to each value you want, then click × to close the dialog. For the Price key, type the price in the field instead.

  6. Enter the Minimum quantity: how many units of matching products the cart must have. The field is required. Enter 1 or more.

  7. Optional: To limit the coupon to some customers, click the Customer emails field in Customer conditions. Type an email address and press Enter. Repeat for each customer. See Customer conditions.

  8. Click Save at the bottom of the page.

For a new coupon, EverShop shows "Coupon created successfully!" and opens the coupon's page. For a saved coupon, it shows "Saved successfully!". The new conditions apply at once, also to carts that already use the coupon.

How EverShop checks the conditions​

EverShop checks a coupon's conditions at three moments:

  • When the customer enters the code and clicks Apply. If a condition is not met, the customer sees "Invalid coupon".
  • Each time the cart changes, and each time the customer opens a page of your storefront.
  • When the customer places the order.

If the cart stops meeting a condition, EverShop removes the coupon from the cart. The Discount line disappears from the order summary. When the cart meets the condition again, the customer must apply the code again. If the coupon fails when the order is placed, the order is placed without the discount. See The coupon disappeared from the cart.

The coupon must also be enabled and inside its Start date and End date. For every message a customer can see, see Coupon Not Working at Checkout.

Minimum amount and quantity​

Minimum purchase amount is compared with the cart's Sub total. The Sub total is the price of each product times its quantity, before the discount and without shipping. The minimum is included: with a minimum of 40, a Sub total of exactly $40.00 qualifies.

With Catalog prices include tax on, the default, your prices include tax, so the Sub total includes tax. See Prices Including or Excluding Tax.

For example, the demo coupon SAVE5 takes $5 off orders of $40 or more. A Ceramic Coffee Cup - White costs $15.00:

CartSub totalWhat happens
2 cups$30.00The customer applies SAVE5 and sees "Invalid coupon".
3 cups$45.00SAVE5 applies. The customer pays $40.00 before shipping. The minimum counts the Sub total before the discount.
3 cups, then the customer removes 1 cup$30.00EverShop removes SAVE5 from the cart. The customer pays $30.00 before shipping. After adding the cup back, the customer must apply SAVE5 again.

Minimum purchase qty is compared with the number of units in the cart, all products together. Three cups and one vase count as 4. This minimum is included too.

Products the order must contain​

The table Order must contain products matching all conditions below asks for certain products in the cart. Each row is one rule:

  • Key is what EverShop looks at in each product.
  • Operator and Value say which products match.
  • Minimum quantity is how many units of matching products the cart must have. EverShop adds up the units of all matching products.

The cart must meet every row. One product can count for several rows.

KeyA product matches whenOperators
CategoryIts category is one of the chosen categories. A product in a sub-category does not count for the parent category. See Create and Organize Categories.In, Not in
CollectionIt is in at least one of the chosen collections. See Create a Collection.In, Not in
Attribute GroupIts attribute group is one of the chosen groups. See Attribute Groups.In, Not in
SKUIts SKU (stock keeping unit, the product code) is one of the chosen SKUs. Each product variant has its own SKU. See How Variants Work.In, Not in
PriceIts price, for one unit, compares with the amount you type. This is the price you entered for the product.Equal, Not equal, Greater, Greater or equal, Smaller, Equal or smaller

Choose the operator from the Operators column of this table.

How In and Not in work, with one or several chosen values:

  • In counts the units of products that match any of the chosen values.
  • Not in counts the units of products that match none of the chosen values. It does not block other products. Take Category Not in Desk Accessories, with a Minimum quantity of 1. A cart with a pen holder and a cup qualifies, because the cup counts.

A worked example​

The coupon from the steps has Minimum purchase amount 40 and one row: Category In Drinkware, Minimum quantity 2. In the demo store, cups ($15.00) and thermoses ($35.00) are in Drinkware, and vases ($25.00) are in Home Decor.

CartDrinkware unitsSub totalCoupon applies?
1 cup, 1 thermos2$50.00Yes
1 thermos, 1 vase1$60.00No: only 1 Drinkware unit
2 cups2$30.00No: below $40

You could add a second row: Price Greater or equal 25, Minimum quantity 1. The cart then also needs one product of $25.00 or more. The first cart meets it: the thermos counts.

Change a row​

  • After you save the coupon, the Key and Operator of a row show as text.
  • To change them, click the minus icon at the end of the row. Then add a new row and click Save.
  • To change the Value, click the link in the Value column.

Customer conditions​

The Customer conditions card limits a coupon to some customers.

Customer emails limits the coupon to customer accounts. When the list has at least one email address:

  • Only signed-in customers whose account email is on the list can use the coupon.
  • Guests cannot use it. This is also true when a guest types a listed email at checkout.
  • A customer with an account must sign in before applying the code.

Leave the list empty to let every customer use the coupon. To find a customer's email, see Find a Customer.

Customer groups lists the customer groups of your store. EverShop 2.4.0 has one group, Default, and every customer account belongs to it. See Customer groups.

What your customers see​

Tell customers about a coupon's conditions in your offer, for example "$5 off orders of $40 or more".

When the cart meets every condition, the order summary shows a Discount line with the code. Here, three cups with a Sub total of $45.00 meet the $40.00 minimum of SAVE5:

When a condition is not met, the customer sees "Invalid coupon" after Apply. See Invalid coupon.

Settings on this page​

CardFieldWhat it doesDefault
Order conditionsMinimum purchase amountThe lowest Sub total, before the discount and without shipping. See Minimum amount and quantity.0 (no minimum)
Order conditionsMinimum purchase qtyThe lowest number of units in the cart, all products together.0 (no minimum)
Order conditionsOrder must contain products matching all conditions belowRows of Key, Operator, Value and Minimum quantity. The cart must meet every row. See Products the order must contain.No rows
Customer conditionsCustomer emailsOnly signed-in customers with these account emails can use the coupon. See Customer conditions.Empty (every customer)
Customer conditionsCustomer groupsThe customer groups of your store. EverShop 2.4.0 has one group, Default.Empty

Troubleshooting​

Why does the discount include products that do not match the condition?​

Conditions only decide whether the cart can use the coupon. The discount type decides which products get the discount. Take a 10% coupon of the type Percentage discount to entire order, with the row Category In Drinkware. It takes 10% off the whole cart, vases included. To discount only some products, use Percentage discount to specific products or Fixed discount to specific products. See Coupon Types.

Next steps​

For developers​

To create coupons with conditions from code, see the condition and user_condition fields in the Promotion REST API.