Displaying Gift Message and Date Details in Email Templates

A pre-built template implementing the below article can be found here

In order for the messages gathered with Giftship to display in your order confirmation emails, you will need to edit your order confirmation email template as described below: 

There are two locations that the message and date information added with Giftship could come through to your orders, depending on which of the below options you select in your settings:

The first option makes the information come through as line item properties. Here is a snippet to display all line item properties in your email templates which should be inserted in the line item loop, usually underneath the product title:


{% for p in line.properties %}
{% unless p.last == blank %}
{{ p.first }}: {{ p.last }} <br/>
{% endunless %}
{% endfor %}

The second option will show the message and date details as order note attributes. Here is how you can display an order note attribute, both in email templates and Shopify’s Order Printer app. You can insert this wherever you would like these to appear, but usually at the bottom of the file somewhere.


To: {{ attributes.To }}<br/>
From: {{ attributes.From }}<br/>
Message: {{ attributes.Message }}<br/>
Delivery Date: {{ attributes['Delivery Date'] }}<br/>

Please note: if you have changed the name of the above fields in Giftship’s settings, you will need to replace the above with their new names, including the custom field.

Can't find the answer in our documentation?
Contact Support