View Categories

Templates (email, SMS, WhatsApp)

13 min read

Write and schedule follow-ups on every channel.

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

What it does. A template is one follow-up: its text, its channel and when it goes out. When a cart is abandoned, every active template is scheduled.

Why it matters. You decide the cadence — a quick reminder, a helpful question a day later, a discount on day three — and every channel joins the same timeline.

Details

  • Unlimited templates per channel: Email always; SMS and WhatsApp once they are switched on in the settings.
  • Send after: a number (0–44,640) of minutes, hours or days, counted from the moment the cart was abandoned.
  • Templates go out in the order of their delay.
  • Each template is queued at most once per cart. Changing templates later re-plans abandoned carts without sending anything twice.
  • Three active email templates come with the plugin (see chapter 8).
  • A template can be switched on and off without deleting it.
  • A new template starts Active and goes out 30 minutes after the cart was abandoned. Name, text and the remaining settings are yours to fill in. The channel is the one you clicked Add Template on; SMS and WhatsApp only offer it once they are switched on.
  • What the editor checks before it saves. Nothing is stored until the template passes:
  • every channel: a name — “Give the template a name.”;
  • Email: a subject and a body — “Give the email a subject.” / “Give the email a body.”;
  • SMS: message text — “Give the message some text.”;
  • WhatsApp: the name and the language code of an approved WhatsApp template, or — in Free text mode — message text.
    When a check fails, the editor comes back with everything you typed still in it (kept for 15 minutes) and the reason above the form.
  • Who may save raw HTML. Users with the unfiltered_html capability — Administrators and Editors on a single-site installation, Super Administrators on Multisite — save the body exactly as typed. Everyone else gets it saved with unsafe markup removed (scripts, iframes and the like).
  • Duplicate creates an inactive copy named “ (copy)”.
  • Deleting a template keeps the history of what was already sent.
  • Templates can be exported as a JSON file and imported again — on the same site, or on another one. Imported templates start inactive; a template whose name already exists is skipped.

Where to find it. The Templates tab. Add Template to create one; the row actions are Edit, Test, Duplicate, Deactivate / Activate and Delete. Export and Import sit at the top of the list.

The list

  • A Channel selector (Email; SMS and WhatsApp appear once they are switched on).
  • Columns: Template · Subject (email only) · Send after · Sent · Opened, Clicked, Unsubscribed (email only) · Active · Actions.
  • Actions column: Edit · Test · Duplicate · Deactivate / Activate · Delete.
  • Toolbar: Add Template · Export (downloads the templates of this channel as JSON) · Template file to import + Import.
  • The Active column is a switch: ✓ means the template is scheduled for abandoned carts.
  • Test opens the editor and jumps to the Send a test box.
  • Import: choose a JSON file exported earlier (up to 1 MB). Imported templates start inactive; templates whose name already exists are skipped.

The editor — “Add Email Template” / “Edit SMS Template” …

Card: Template

Field Channels Notes
Channel new template, when more than one channel is on Email, SMS or WhatsApp
Name all Required. Only you see it, for example “First reminder”.
Subject Email Plain text, merge tags allowed. Required.
Heading Email “Shown above the content in the WooCommerce email layout. Leave empty to use the subject.”
Message type WhatsApp Approved WhatsApp template or Free text
Message all Email: visual editor. SMS and WhatsApp: plain text. Required.
WhatsApp template name · Template language · Template values · Button link value WhatsApp (template type) See 4.5

When something is missing: the editor comes back with the reason above the form — “Give the template a name.”, “Give the email a subject.”, “Give the message some text.” … — and keeps everything you typed for 15 minutes. See 4.2.

Card: When it is sent

  • Send after: a number and minutes / hours / days. “Templates are sent in this order, counted from the moment the cart is abandoned.”
  • Active: “Schedule this template for abandoned carts”.

Card: Settings of this template only (Email)

  • Email layout: As the store settings say · CartWin layout — recommended · In the WooCommerce email design · Simple layout, without the store design
  • Copy to the store owner: No copy for this template · Blind copy (Bcc) · Visible copy (Cc) — and “Address, if not the store one”
  • Coupon: “Use coupon settings of its own for this template” — Percent discount or Fixed discount, how long it is valid (0 = never), Free shipping, Only usable on its own (not with other coupons). “Without its own settings the coupon settings of the store are used.”
  • Product table: Pictures · Names · Quantities · Prices · Subtotals — Small / Medium / Large pictures — Prices as the store shows them / Prices with tax / Prices without tax

Card: Save

  • Save Template
  • Send a test (saved templates): an address box (your own email address is filled in for Email) and Send test. “Sends the saved version with sample data.”

Card: Preview (Email, saved templates)

  • Preview saved template opens the rendered email in a pop-up. Close it with ✕, the Esc key or a click outside.

Card: Merge tags

  • Every tag, grouped, with its description. “Click a tag to insert it where your cursor is.” Below: the Optional block syntax.

Create a template

  1. CartWin → Templates. Choose the Channel at the top (Email, or SMS and WhatsApp once switched on).
  2. Click Add Template.
  3. Name: for your own reference, e.g. “Second reminder”.
  4. Write the content (email: Subject, optional Heading, Message). Insert merge tags by clicking them in the Merge tags card.
  5. Send after: a number and minutes, hours or days. A new template starts at 30 minutes and is Active.
  6. Leave Active on to schedule the template for abandoned carts.
  7. Click Save Template.
  8. Click Test in the list and send one to yourself.

Edit a template. Your changes apply from the next message that is sent. A message that is already queued uses the template as it reads at the moment of sending.

If the editor refuses to save. The reason appears above the form — a missing name, subject or message text (SMS), or the name or language of a WhatsApp template. Everything you typed is still there; complete it and save again.

Change the timing. Open the template and change Send after. Templates go out in the order of their delay. Carts that are already abandoned are planned again — a template already queued, sent or failed for a cart is not queued again.

Switch a template off. Click Deactivate in the list (or the ✓ in the Active column, or the switch in the editor). Messages of that template still in the queue are skipped when their time comes (The template is inactive.). Switch it on again any time.

Duplicate a template. Duplicate creates an inactive copy named “ (copy)” — a quick way to make a variant.

Delete a template. Delete asks for confirmation. Messages already sent stay in the Message Log and the reports.

Test and preview. Test sends the saved template with sample data. For email there is also Preview saved template, which shows the rendered email in a pop-up.

Move templates to another site. Export downloads the templates of the chosen channel as a JSON file. On the other site, choose the same channel and upload the file under Template file to import → Import. The channel must be switched on there; imported templates start inactive.

Email layout per template. Under Settings of this template only → Email layout a template can use another layout than the store-wide one.

A merge tag is a placeholder such as {{customer.firstname}} that is replaced with the customer’s or the cart’s data when the message is prepared. The tag names follow the common customer.* / cart.* naming that other cart-recovery plugins use, so templates written for those plugins often keep working.

7.1 All 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

7.2 Where merge tags work

Place Merge tags
Email — Subject, Heading, Message Yes
SMS — Message Yes
WhatsApp — Template values, Button link value, Message (free text) Yes
Out-of-stock notice — Notice subject, Notice body Yes

7.3 Syntax rules

  • Unknown tags are left as written. {{does.not.exist}} stays in the message.
  • Values a shopper typed are escaped in emails, so a name or address can never inject HTML.
  • In the subject line all HTML is removed and control characters are stripped; the result is cut at 249 characters.
  • WhatsApp has two kinds of placeholders. {{1}}, {{2}} … belong to Meta’s approved template and are filled from the Template values box, one value per line. Each line may itself contain CartWin merge tags — for example {{cart.product.names}} on the first line and {{cart.total}} on the second.
  • Dates are shown in the site’s time zone and date format.
  • A tag that has no value becomes empty — except the two with a fallback ({{customer.firstname}}, {{admin.firstname}}).

7.4 Optional blocks

Show a block only when a tag has a value:

{{#if cart.coupon_code}} Your coupon code: {{cart.coupon_code}}, valid until {{cart.coupon_expiry}}. {{/if}}
  • The content between {{#if …}} and {{/if}} is kept only when the named tag has a value.
  • Works with any merge tag — for example {{#if customer.firstname}}.
  • Blocks cannot be nested: the first {{/if}} closes the block.
  • There is no “else” branch.

7.5 The product table in detail

{{cart.product.table}} in an email is a table with inline styles (so it survives every mail client). Per template you choose:

Option Choices Default
Columns Pictures · Names · Quantities · Prices · Subtotals All five
Picture size Small pictures (56 px) · Medium pictures (100 px) · Large pictures (140 px) Small pictures
Prices Prices as the store shows them · Prices with tax · Prices without tax As the store shows them
  • Each product name links to the product page; the links go through click tracking when it is on.
  • A product that no longer exists is still listed by the name it had when the cart was captured.
  • Names longer than 64 characters are cut with ....
  • In an SMS or a WhatsApp message the table is replaced by {{cart.product.names}}.

A new installation comes with three active email templates. Their texts are below as the customer reads them; the stored HTML uses inline styles so the mails look the same in every mail client. The link sits in the button alone. (An earlier build also put a plain-text copy of the link under the button, starting with “If the button does not work”; the current build removes that line from every template that carries it.)

8.1 Friendly reminder

Channel Email
Send after 30 minutes
Active Yes
Subject Did you leave something behind, {{customer.firstname}}?

Hi {{customer.firstname}},

Looks like you left a few things in your cart at {{site.title}}. No problem at all – they are still waiting for you, exactly where you left them.

(product table)

[ Complete your order ] → {{cart.checkout_url}}

Thank you for shopping with us!

8.2 Need a hand?

Channel Email
Send after 1 day
Active Yes
Subject Any questions about your order, {{customer.firstname}}?

Hi {{customer.firstname}},

Yesterday you started a checkout at {{site.title}} but did not finish. If something was holding you back – a question about shipping, payment or the products – simply reply to this email: a real person reads every message.

(product table)

[ Return to your cart ] → {{cart.checkout_url}}

We are here to help!

8.3 A little thank you

Channel Email
Send after 3 days
Active Yes
Subject A small thank-you to finish your order

Hi {{customer.firstname}},

Still thinking it over? As a thank-you for your patience, here is a little something towards your order:

(coupon code — only when the cart has a coupon)

(Valid until {{cart.coupon_expiry}} – don’t let it slip away. — only when the coupon has an expiry date)

(product table)

[ Complete your order ] → {{cart.checkout_url}}

Warm regards!

The coupon part of this template is:

{{#if cart.coupon_code}}<strong>{{cart.coupon_code}}</strong>{{/if}}
{{#if cart.coupon_expiry}}Valid until {{cart.coupon_expiry}} – don't let it slip away.{{/if}}

Note. The opening line promises “a little something”, but the code itself only appears when coupons are switched on. Either switch on coupons (Settings → Coupons) or reword the opening.

8.4 Out-of-stock notice (default text)

This is not a template in the list; it is the text under Settings → Emails → Out-of-stock items, used when the notice is switched on.

Notice subject An update on the items in your cart at {{site.title}}
Heading An update about your cart

Hi {{customer.firstname}},

Thank you for your interest in {{site.title}}. We noticed you had your eye on a few items, and we wanted to let you know that at least one of them is currently out of stock:

(product table)

We expect it back soon. Check availability → {{cart.checkout_url}} — or simply reply to this email and we will be happy to help you find an alternative.

{{site.title}}

You received this email because you started a checkout at {{site.title}}. Stop these reminders → {{cart.unsubscribe}}

8.5 Other emails the store owner receives

These have no editable template.

When a cart is recovered (Settings → Emails → Email me when a cart is recovered):

  • Subject: Abandoned cart recovered – order <order number>
  • Body: Good news: <customer name> came back and placed a <amount> order. — the items of the cart — View the order (link to the order in the admin).

Weekly summary — see 4.11.


Was this helpful?

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

Download CartWin — it’s free

← Previous: Carts   |   Next: Merge tags reference →