Shopify themes, liquid, logos, and UX
I just updated my theme to enable the new "send as gift" Gift Card feature, so I am designing the emails on Klaviyo and then exporting the HTML code to Shopify's two new notification templates per this. Every variable tag that was in the default Shopify email templates works, except recipient's name.
The only place this tag works correctly is in Shopify's default subject line on the buyer's email. The code that works for it there is:
{% if gift_card.recipient.nickname != blank %}{{ gift_card.recipient.nickname }}{% elsif gift_card.recipient.name != blank %}{{ gift_card.recipient.name }}{% else %}{{ gift_card.recipient.email }}{% endif %}{% endif %}
When I use this code exactly, within the email body, Shopify shows an error. When I parse out the bits that I think SHOULD work in the email body, such as {{ gift_card.recipient.name }} then the name which shows in this place is the BUYER'S name, not the recipient's name.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025