Text and variables
Format the text in a post-purchase offer and use placeholders like {product} and {discount} that fill in automatically.
Most text in a post-purchase offer — headings, body copy, the product title and price, button captions, FAQ answers — is written in a rich-text field with a small toolbar.
The toolbar
| Tool | What it does |
|---|---|
| Bold, Italic, Strikethrough | Basic styles. |
| Font size | 9, 12, 14, 16, 18, or 24. |
| Alignment | Left, centre, or right. |
| Text color | Black, Red, Green, or Yellow. |
| Link | Paste a URL and click Apply. Links open in a new tab. Click again to remove the link. |
| Clear styling | Removes all formatting from the selection. |
+ {variable} buttons | Insert a variable (see below). |
How it looks on the real page
Shopify's post-purchase page has a fixed set of text styles, so formatting is matched to the nearest one: sizes 9–12 become small, 14–16 normal, 18 large, and 24 extra large. Red, green, and yellow become Shopify's error, success, and warning colours. Underline isn't supported and is dropped.
Variables
Variables are placeholders in curly braces. They're replaced with real values for each customer. Inserted variables show as locked chips in the editor; you can also type them yourself.
| Variable | Becomes | Example |
|---|---|---|
{product} | The offered product's name | Organic Lip Balm |
{discount} | Your discount, as a percentage or an amount | 15% or $5.00 |
{original-price} | The price before your discount | $20.00 |
{current-price} | The price after your discount | $17.00 |
{savings} | The saving, in brackets | (Save 15%) |
{timer} | The live countdown — inside the Timer widget only | 4:59 |
{first-name} | The customer's first name, when available | Jane |
Where each variable works
Every variable works in every text field, but each field's toolbar only offers the ones that usually make sense there:
| Field | Insert buttons |
|---|---|
| Text widget, Text & image widget, Text above buttons, Text under buttons, FAQ title | {discount}, {product} |
| Product title | {product} |
| Product price | {original-price}, {current-price}, {savings} |
| Timer Heading and Body text | {timer} |
Variables also work in Trust badge text and the Discount title.
Things to know
{timer}only counts down inside the Timer widget. Anywhere else it shows a fixed 5:00.{savings}is empty when there's no discount. For an amount-off discount it shows the equivalent percentage. It's always in English (Save).{discount}shows 0% when the discount is 0 — avoid it in headlines for offers without a discount.{first-name}may be blank. Shopify doesn't always share the customer's name with the post-purchase page, which is why the editor has no button for it. If you use it, write the sentence so it still reads well without a name — Grab another before it's gone! rather than Jane, grab another!
Next
Split tests — try different offers against each other.