I see. I must confess I have never used gift_card properties before. One thing I don’t understand is why don’t you just use the line item properties instead? This can be accessed in the gift card liquid. I just tested it, if I add custom properties like gift message to the line item properties, and make a test order, I can retrieve these in the gift card page. Am I not understanding what you trying to achieve here?
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.propertiesreturns empty when queried in notification templates or gift card liquid files - The
gift_cardobject 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.propertiesloop - 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.