Displaying Gift Message and Date Details in Email Templates

Follow

A pre-built template implementing the below article can be found here: https://appsbypixhelp.zendesk.com/hc/en-us/articles/360021459113-Stock-Email-Template-for-Multiple-Shipping-Address-Orders

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:

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 Giftship's settings, you will need to replace the above with their new names, including the custom field.

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.