How can I add a custom message to gift cards purchased in my store?

Topic summary

The discussion centers on adding custom messages to gift cards in Shopify stores and displaying them in notification emails. The core issue: line-item properties added during checkout don’t automatically transfer to the generated gift card object.

Key Technical Challenge:

  • Users can capture custom messages via line-item properties during purchase
  • These properties appear in cart, checkout, and order summaries
  • However, gift_card.properties returns empty when queried in notification templates or gift card liquid files
  • The gift_card object theoretically supports properties, but the transfer doesn’t happen automatically

Working Solution (from yy0z):

  • Add line-item properties using custom liquid in product template
  • Access them in gift card notification via gift_card.properties loop
  • Critical caveat: Properties only appear in actual test orders, not email previews
  • Some users reported delays (properties appearing the next day), possibly due to caching

Important Discovery:
Shopify intentionally removes gift card recipient details from orders after fulfillment for privacy protection. This explains why properties may disappear post-checkout.

Current Status:
Some users successfully implemented the solution using Dawn theme, while others remain stuck. Testing requires actual orders rather than previews. Questions about using gift_card.note field and Shopify Flow integration remain partially unresolved.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Interesting thought Yy0z. Shopify does have some goofy caching and maybe that is getting in the way of testing. Man, I wish Shopify support was able to answer questions like this. I did reach out to support and all they are able to tell me is that they are not developers and you’re pretty much on your own. Appreciate your input.