Displaying Message and Date Details in Email Templates

Follow

There are 2 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 underneat the product title:

https://help.shopify.com/en/themes/customization/products/features/get-customization-information-for-products#show-customizations-in-email-templates-sectioned-themes-specific

{% 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.

https://help.shopify.com/en/themes/liquid/objects/cart#cart-attributes

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 Giftships settings, you will need to replace the above with whatever you have set these to come through as, including the custom field.

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.