Skip to main content

Show the gift message in the order confirmation email

Add a short snippet to Shopify's order confirmation template so shoppers see their gift message.

Written by Support

Shopify's order confirmation email lists the box items, but not the gift message. A short snippet adds it.

Steps

  1. In Shopify, go to Settings → Notifications → Customer notifications → Order confirmation.

  2. Click Edit code.

  3. Paste this where the message should appear, such as below the line items:

{% for line in line_items %}
  {% assign giftcrate_message = line.properties['_gift_message'] | default: line.properties['Gift message'] %}
  {% if giftcrate_message != blank %}
    <p><strong>Gift message:</strong> {{ giftcrate_message | escape }}</p>
  {% endif %}
{% endfor %}

Then click Save and Send test email to check it.

Orders with several boxes show each box's message.

Did this answer your question?