Guides

Per-Cart Coupons: A Practical Guide

Offer a unique, time-limited coupon for every abandoned cart, or use one fixed code.

Per-Cart Coupons: A Practical Guide

How coupons work

What it does. Adds a discount to the follow-up — a unique, time-limited coupon for each cart, or one fixed code.

Why it matters. A discount with an expiry date gives a hesitant shopper a reason to order now.

Details

  • Off by default. Choose under Settings → Coupons → Coupons in follow-ups: No coupons · A unique, time-limited coupon per cart · One fixed coupon code for everyone.
  • Unique coupons are created by CartWin as WooCommerce coupons when a message that mentions a coupon is prepared. One coupon per cart; it is reused for the cart’s later messages while it is still usable.
  • Settings for unique coupons: discount (percent of the cart, or a fixed amount off), validity (hours, days or weeks; 0 for no expiry), code prefix (cartwin- by default — the rest of the code is random), minimum and maximum cart value, usage limit (times in total, and at most once per customer), and the options cannot be combined with other coupons, also allows free shipping, not valid for sale items, only valid for the items that were in the abandoned cart.
  • Fixed code: create the coupon yourself under Marketing → Coupons, then type its code in the setting.
  • A template shows the code with {{cart.coupon_code}} and the expiry date with {{cart.coupon_expiry}}. A template that does not use them simply has no coupon.
  • Three levels of settings, the first one found wins: the template’s own coupon settings → a rule’s coupon → the store settings.
  • Delete expired coupons automatically (on by default) removes expired coupons CartWin created. Delete all of them under Tools removes every coupon CartWin created.
  • CartWin only ever deletes coupons it created itself.
  • Deleting a cart does not delete its coupon. The coupon stays usable until it expires, until Delete expired coupons automatically removes it, or until Delete all of them under Tools is used.

Where to find it. Settings → Coupons. Per template: Templates → Edit → Coupon. Per rule: Rules → action Send a coupon with these settings.

Coupons in practice

  1. CartWin → Settings → Coupons.
  2. Coupons in follow-ups: choose A unique, time-limited coupon per cart or One fixed coupon code for everyone.
  3. For unique coupons: set Discount, Valid for and the other options (all in 6.3).
  4. Save. Make sure the template that should offer the coupon contains {{cart.coupon_code}} — the default template A little thank you does.

The coupon is created when the first message that mentions it is prepared for a cart. You find it under Marketing → Coupons, with the description “Created by CartWin for cart #“.

For a different discount in one template (4.7) or by cart value (chapter 9), use the template’s own coupon settings or a rule.

Coupon settings

Setting What it does Default Values / range
Coupons in follow-ups No coupons · a unique, time-limited coupon per cart · one fixed coupon code for everyone. “Templates show the code with the {{cart.coupon_code}} merge tag. A template that does not use it simply has no coupon.” No coupons No coupons · A unique, time-limited coupon per cart · One fixed coupon code for everyone
Fixed coupon code For the fixed mode. “Create the coupon under Marketing → Coupons first, then type its code here.” (empty) Letters, digits, - and _ (stored in upper-case)
(heading: Unique coupons) — “These apply to the coupons CartWin creates for each cart.”
Discount The amount, and whether it is a percentage or a fixed amount. 10 percent of the cart Amount 0 or more · percent of the cart / fixed amount off the cart
Valid for How long a coupon stays usable. “Enter 0 for no expiry.” 7 days 0–365 · hours / days / weeks
Code prefix The start of every generated code; the rest is random. cartwin- Up to 20 characters: letters, digits, - and _
Minimum cart value Coupons are only valid from this cart value up. 0 (none) Amount 0 or more
Maximum cart value Coupons are only valid up to this cart value. 0 (none) Amount 0 or more
Usage limit “… times in total, and at most once per customer” 1 1–100
Cannot be combined with other coupons Option. Off On / Off
Also allows free shipping Option. Off On / Off
Not valid for sale items Option. Off On / Off
Only valid for the items that were in the abandoned cart Option. Off On / Off
Delete expired coupons automatically Removes expired coupons CartWin created. On On / Off

Coupon merge tags

Customer

Tag Renders as Notes
{{customer.firstname}} The customer’s first name Falls back to there when unknown — so Hi {{customer.firstname}}, becomes Hi there,
{{customer.lastname}} The customer’s last name Empty when unknown
{{customer.fullname}} First and last name Empty when unknown
{{customer.email}} The customer’s email address
{{customer.phone}} The customer’s phone number International format

Cart

Tag Renders as Notes
{{cart.product.names}} Blue T-shirt x 2, Mug x 1 Plain text
{{cart.product.table}} The item list with pictures and prices In SMS and WhatsApp it becomes the plain list of names
{{cart.total}} The cart value Formatted like the store’s other prices
{{cart.item_count}} The number of items Quantities added up: 2 shirts and 1 mug is 3
{{cart.abandoned_date}} The date the cart was abandoned Site’s date format. Before the cart is abandoned (as in a test message) the capture date is used
{{cart.checkout_url}} The link that restores the cart and opens the checkout
{{cart.token}} The code inside the checkout link For WhatsApp URL buttons: https://yoursite/?cartwin_restore={{cart.token}}
{{cart.coupon_code}} The coupon code for this cart Empty when there is no coupon
{{cart.coupon_expiry}} The date the coupon expires Empty when there is no coupon or no expiry

Site

Tag Renders as Notes
{{site.title}} The site name
{{site.url}} The site address (home URL)

{{site.name}} is an alias of {{site.title}}: it works, but the editor does not list it.

Store owner

Tag Renders as Notes
{{admin.firstname}} The first name of the shop owner The user with the site’s admin email address, else the first administrator. Falls back to the display name, then to Admin
{{admin.company}} The shop name For signing the email

Compliance

Tag Renders as Notes
{{cart.unsubscribe}} The unsubscribe link Opens the “You are unsubscribed” page and opts the cart out

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