View Categories

Rules

5 min read

Decide which carts get which follow-ups.

Every feature in CartWin is free. There is no paid version and nothing is locked.

What it does. Rules decide what a cart receives: leave some carts alone, skip or keep only certain templates, or send a different coupon.

Why it matters. Every store has exceptions — products you cannot back-order, customers who should not get a discount, carts too small to be worth a coupon.

Details

  • 7 conditions: Cart contains product(s) · Cart does not contain any of the product(s) · Cart contains product(s) from category · Cart value · Number of items in the cart · Customer is (a guest / a registered customer) · Email address ends with.
  • Numeric conditions compare with: is more than · is at least · is exactly · is at most · is less than.
  • Product and category conditions can require all or any of the chosen items.
  • Conditions are combined with all conditions match or any condition matches. A rule without a usable condition never matches.
  • 4 actions: Send no follow-ups for this cart · Skip the selected templates · Send only the selected templates · Send a coupon with these settings.
  • Rules run from top to bottom; a rule with a lower Priority runs first (−999 to 999, 10 by default).
  • A “Send no follow-ups” rule ends the evaluation for that cart. Several “Send only” rules are combined: only templates chosen by all of them remain. A later coupon rule overrides an earlier one.
  • Rules are checked when a cart is planned and again right before each message is sent — so a rule you add today also protects the messages still queued.
  • Saving, toggling or deleting a rule re-plans the abandoned carts (without duplicating anything).

Where to find it. The Rules tab. Examples in chapter 9.

9.1 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.

9.2 The conditions, exactly

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

9.3 The actions, exactly

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.

9.4 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.

9.5 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.

Rules are created under CartWin → Rules → Add Rule. The conditions, the actions and worked examples are in chapter 9. Remember two things:

  • A saved rule applies to carts abandoned from now on and to the follow-ups still queued for carts that are already abandoned.
  • A rule with a lower Priority runs first.

Was this helpful?

Still stuck? Write to [email protected] with a screenshot and a description.

Download CartWin — it’s free

← Previous: Coupons   |   Next: Settings reference →