View Categories

Merge tags reference

4 min read

Every placeholder and conditional block you can use in a follow-up.

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

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

Was this helpful?

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

Download CartWin — it’s free

← Previous: Templates (email, SMS, WhatsApp)   |   Next: Coupons →