Guides

CartWin Rules: 7 Conditions and 4 Actions Explained

Use the CartWin rule engine to control exactly which carts get which follow-ups and coupons.

CartWin Rules: 7 Conditions and 4 Actions Explained

How a rule is evaluated

  1. Every active rule is checked, from the lowest Priority number to the highest.
  2. A rule matches when its conditions are true for the cart: all of them, or any of them, as chosen.
  3. A matching rule applies its action. Several matching rules add up, with two exceptions:
    – Send no follow-ups for this cart ends the evaluation: the cart gets nothing.
    – Several Send only the selected templates rules are intersected: only templates chosen by every one of them remain.
  4. A matching coupon rule replaces the coupon settings; when several match, the last one wins.

The result is checked again right before each message is sent.

The conditions

Condition Value you enter Matches when
Cart contains product(s) One or more products; any of or all of The cart holds at least one (any of) or every one (all of) of the chosen products
Cart does not contain any of the product(s) One or more products The cart holds none of the chosen products
Cart contains product(s) from category One or more categories; any of or all of Products from at least one (any of) or from every one (all of) of the chosen categories are in the cart. A variation counts as its parent product
Cart value An amount, with is more than / is at least / is exactly / is at most / is less than The cart value compares as chosen. The cart value is the total including tax
Number of items in the cart A number, same comparisons The number of items (quantities added up) compares as chosen
Customer is a guest / a registered customer The shopper was not / was logged in
Email address ends with A domain, e.g. gmail.com The email address is at exactly that domain

The actions

Action What you fill in Effect
Send no follow-ups for this cart Nothing The cart receives nothing.
Skip the selected templates Template checkboxes These templates are left out; the others go out.
Send only the selected templates Template checkboxes Only these templates go out.
Send a coupon with these settings Discount, Valid for, Options, Code prefix A coupon with these settings is created for each matching cart, instead of the coupon from the settings.

Worked examples

Each example is one rule: Rules → Add Rule, then fill in the fields as listed.

1. Never remind about products we cannot back-order
Use when: some products sell out for weeks; a reminder would only lead to a dead end.
– Name: No reminders for pre-order items
– When: Cart contains product(s) → pick the products → any of
– Then: Send no follow-ups for this cart
– Priority: 0 (run before everything else)

2. A bigger discount for large carts
Use when: a 10 % coupon is too small to move a $300 cart.
– Name: Bigger coupon from $300
– When: Cart value → is at least → 300
– Then: Send a coupon with these settings → Discount 15 percent of the cart, Valid for 2 days
– Priority: 10

The third default email (which prints the coupon code) then shows a 15 % coupon for these carts.

3. Do not discount sale items
Use when: margins on sale items are already thin.
– Name: No coupon on the Sale category
– When: Cart contains product(s) from category → Sale → any of
– Then: Skip the selected templates → tick A little thank you

4. Guests get fewer messages
Use when: you only want to invest in repeatable relationships.
– Name: Guests: first reminder only
– When: Customer is → a guest
– Then: Send only the selected templates → tick Friendly reminder

5. Leave our own staff and test accounts alone
Use when: colleagues and test orders should never receive follow-ups.
– Name: No follow-ups for staff
– When: Email address ends with → yourstore.com
– Then: Send no follow-ups for this cart
– Tip: for accounts that are logged in, the setting Do not track under Settings → General does the same without a rule.

6. No coupon below a cart value — without a rule
Use when: a coupon should not work on tiny carts.
This needs no rule: Settings → Coupons → Minimum cart value → 50. Coupons are then created with that minimum, and WooCommerce does not accept them below it.

7. A different code prefix for a campaign
– Name: VIP coupon
– When: Cart value → is more than → 500
– Then: Send a coupon with these settings → Discount 20 percent of the cart → Code prefix vip-
– Result: codes such as vip-K7M2PQ9RX2.

Good to know

  • A new rule starts Active, with Priority 10, all conditions match, and the action Skip the selected templates. A rule’s coupon starts at 10 percent, valid for 7 days.
  • A rule with no usable condition never matches — the Rules list marks it “This rule has no conditions and never matches.”
  • Changing, switching off or deleting a rule re-plans the abandoned carts. Nothing is sent twice.
  • A rule that sends a coupon works even when Coupons in follow-ups is set to No coupons: the rule’s coupon is created for the matching carts. The message still needs the {{cart.coupon_code}} tag to show it.
  • A template’s own coupon settings win over a rule’s.

Get started for free

CartWin is free, open source, and runs on your own WordPress site. Download CartWin from WordPress.org.

Questions? Write to [email protected].