How to Add a Gift Message to Shopify Abandoned Cart Emails
How to Add a Gift Message to Shopify Abandoned Cart Emails
A shopper adds a candle to their cart, types "Happy birthday, Mum — love you!" into a gift note field, then leaves without buying. If your abandoned cart email doesn't carry that note forward, you've lost the most personal piece of context you had. This guide shows you how to capture gift messages at the cart, pass them into your abandoned checkout flow, and render them in the email — using Shopify's native tools plus one of the standard email apps.
Why Gift Messaging Belongs in Your Abandoned Cart Emails
Gift purchases behave differently from self-purchases. The buyer is often on a deadline (a birthday, an anniversary, a shipping cutoff), they're less price-sensitive because they're buying for someone else, and they're more likely to abandon when they hit friction — an unexpected shipping date, a gift-wrap upsell, or uncertainty about whether the note will actually arrive with the order.
An abandoned cart email that references the gift message does three things at once:
- It confirms the note was saved. Shoppers worry that personalization fields get lost. Showing the text back to them removes that doubt.
- It creates emotional pull. "Your note to Mum is still waiting" converts better than "You left something in your cart."
- It surfaces the deadline. Pair the note with your shipping cutoff so the recipient knows whether the gift will arrive on time.
Gift buyers also tend to have higher average order values once gift wrap and a card are added, which makes recovering these carts worth more than a standard recovery email.
What Shopify Can and Can't Do Out of the Box
Shopify's native abandoned checkout email is a single, largely non-editable notification. You can adjust the subject line and some copy in Settings → Notifications → Abandoned checkout, but you cannot add custom line-item properties to it, and it does not pull through cart attributes or line-item properties.
Here's what you're working with:
| Capability | Native Shopify | Third-party email app (Klaviyo, Omnisend, Shopify Email) |
|---|---|---|
| Edit abandoned checkout email body | Limited (basic template) | Full HTML/template control |
| Access line-item properties (gift message) | No | Yes, via cart/checkout data |
| Multi-email abandoned flow | No (single email) | Yes |
| Conditional content (show block only if gift note exists) | No | Yes |
| Discount codes in recovery email | Limited | Yes |
The practical takeaway: capture the gift message as a line item property or cart attribute, then use an email platform that can read those fields. Klaviyo and Omnisend both integrate with Shopify and expose line-item properties in abandoned checkout flows; Shopify Email can handle flows too but has a narrower set of personalization variables — check current documentation for the exact fields supported, since these change.
If you sell only a handful of products and don't want a third-party app, Shopify's own Shopify Flow plus Shopify Email can cover a basic version, but conditional blocks around a gift message are easier in Klaviyo or Omnisend.
Step 1: Add a Gift Message Field to Your Cart and Checkout
You need a field that writes a value Shopify can store and your email app can read. There are two routes.
Route A — Line item property (recommended for per-product notes). Add a text input to the product page or cart line that uses the properties[...] naming convention, e.g. properties[Gift message]. This attaches the note to that specific line item, so a cart with three items can carry three separate notes.
- In a Shopify 2.0 theme, edit
main-product.liquidor use a product page app block to insert a<textarea name="properties[Gift message]">. - For a cart-level field, add it inside the cart form in
main-cart-items.liquidso it submits with the line item. - Keep the field optional and label it clearly: "Gift message (optional, printed on the card)".
Route B — Cart attribute (recommended for one note per order). Use attributes[Gift message] on the cart form. This stores one note against the whole order — simpler for stores where every order is a single gift.
If you'd rather not touch Liquid, apps such as Easify Product Options, Infinite Options, or Bold Product Options create these fields without code. All of them write standard line item properties, which is what matters for the next step.
Whatever route you choose, add a character limit (around 200–250 characters fits a printed card) and a short note about whether emoji or special characters will render on your gift card printer.
Step 2: Capture the Gift Message in Your Abandoned Cart Email Flow
Once the field exists, confirm the data is flowing.
- Place a test order with a gift message and check that the property appears on the order in Shopify admin (it shows under the line item on the order page, or under "Additional details" for cart attributes).
- Connect your email app. In Klaviyo, go to Integrations → Shopify and confirm the sync includes line item properties. Klaviyo's abandoned checkout flow uses the
Checkout Startedmetric; the gift message will appear in the event's line items payload. - Build the flow trigger. In Klaviyo: Flows → Create Flow → "Abandoned Checkout" template, or build from
Checkout Startedwith a time delay (typically 1–4 hours for the first email, then 20–24 hours for a follow-up). - Map the variable. In the email editor, insert the line item property as a dynamic variable — in Klaviyo this looks like
{{ event.extra.line_items.0.product.extra.line_item_properties.Gift message }}(the exact path varies by integration version; use the variable picker rather than typing it by hand). - Set a fallback. Most platforms support a default value so the block doesn't render as blank or "undefined" when no gift message exists.
Test the variable path with a real abandoned checkout, not a preview — preview modes often don't populate line item properties.
Step 3: Build the Gift Message Block Into Your Email Template
Design the block so it only appears when a note exists. In Klaviyo, wrap the block in a conditional: show if the gift message property is not empty. In Omnisend, use dynamic content with the same condition.
A workable block structure:
- A short heading: "Your gift note"
- The note itself in quotes, styled in a distinct font or background so it reads as a card
- A line underneath: "This will be printed on the card included with your order."
- Your shipping cutoff date, pulled from a static field you update weekly
Keep the rest of the email focused on recovery: the product image, the price, a clear return-to-cart link, and — if you use them — a discount code. Don't let the gift note crowd out the call to action. Place it above the CTA but below the product summary.
For multi-item carts with per-line notes, loop through line items and show each note under its product. If that's too complex for your template, show only the first note and add "and more gift notes" — but looping is cleaner if your platform supports it.
Step 4: Test the Full Gift Message Journey Before You Launch
Run this checklist before the flow goes live:
- Empty note: abandon a cart with no gift message. Confirm the block is hidden entirely, not showing placeholder text.
- Long note: enter 250 characters and check the email renders without breaking the layout on mobile.
- Special characters: test apostrophes, ampersands, emoji, and accented characters. Apostrophes in Liquid output sometimes render as
'— check the raw HTML. - Multiple line items: one item with a note, one without. Confirm only the noted item displays a message.
- Timing: confirm the first email fires at the delay you set, and that the note is still present in the second email.
- Order completion: place the order after receiving the email and confirm the gift message lands on the order and in your fulfilment/packing slip.
Send tests to a real inbox on both iOS Mail and Gmail mobile — that's where most of your opens happen.
Common Pitfalls and How to Avoid Them
- Using cart attributes when you need per-item notes. A cart attribute stores one note for the whole order. If customers can buy gifts for multiple people, use line item properties instead.
- Editing the native Shopify abandoned checkout email and expecting properties to appear. They won't. Move the flow to an email app.
- Broken variable paths after an app update. Integration payload structures change. Re-test the variable after any Klaviyo, Omnisend, or Shopify update.
- No character limit. A 2,000-character note will break your card printer and your email layout. Cap it at the cart.
- Gift wrap as a separate step. If gift wrap is a paid add-on, make sure the gift message field and the wrap option sit together, or shoppers add one and forget the other.
- Ignoring the packing slip. The gift message must reach fulfilment. Add the property to your packing slip template or your 3PL's order export, or the note never gets printed.
Conclusion
Capturing a gift message is a two-part job: a line item property on the storefront, and an email app that can read it and render it conditionally. Set it up once, test the edge cases above, and your abandoned cart emails will recover gift buyers with a message that feels personal rather than generic.
FAQ
Can I add a gift message to Shopify's built-in abandoned checkout email? No. Shopify's native abandoned checkout notification doesn't support custom line item properties or conditional blocks. You need a third-party email app like Klaviyo or Omnisend to surface the gift message in the email.
Will the gift message appear on the order and packing slip automatically? It appears on the order in Shopify admin, but you must add the property to your packing slip template or order export manually. Otherwise your fulfilment team won't see it.
Do I need a paid app to add the gift message field?
Not necessarily. A developer can add a properties[Gift message] textarea to your theme in Liquid. If you'd rather avoid code, product options apps like Easify or Infinite Options handle it — check current pricing on each.