Shopify notification email guide
Show line item properties in the Shopify order confirmation email
What you’ll need
Access to Settings in your Shopify admin
How to get this: Access to Settings in your Shopify admin
- Sign in at admin.shopify.com with the account you use for your store.
- If you are staff rather than the owner, ask the owner to give you Settings permission in Settings › Users.
Shopify’s email template to paste into
How to get this: Shopify’s email template to paste into
- Settings › Notifications › Customer notifications, open Order confirmation (or the email the tool names), then Edit code.
- Copy the current code somewhere safe first, so you can undo.
Why properties don’t show
Line item properties (engraving text, a gift message, an uploaded file) are saved on the order, and you can see them in admin. The default email only prints them inside a gift-card check, so for a normal product nothing appears.
Steps
- In Shopify admin, go to Settings › Notifications › Customer notifications and open Order confirmation. Click Edit code.
- Press Ctrl+F (Cmd+F on a Mac) to open the editor’s search, and click the replace toggle.
- Search for {% if line.gift_card and line.properties["__shopify_send_gift_card_to_recipient"] %}. It appears 3 times (one per kind of delivery: shipping, pickup, and items that need no shipping).
- Replace with {% if line.properties.size > 0 %} and click Replace all.
- Click Save, then Preview to check the email. Adding a few lines, instead of replacing the whole template, keeps the rest of Shopify’s template as it is.
What the loop prints
Each property as “Name: value”. Keys starting with an underscore (like _designId) stay hidden, the same rule your theme’s cart uses, and a value that points to /uploads/ becomes a link to the file.
What to expect in the editor
In the default Order confirmation template the line appears 3 times. The editor’s Replace all changes every one, the template saves with no error, and Shopify’s preview renders with no “Liquid error”.
Customized template?
If your template doesn’t have that line, paste this loop right after the line that prints the product title in the list of items:
{% comment %} Added with Easy Store Tools: line item properties {% endcomment %}
{% for property in line.properties %}
{% assign property_first_char = property.first | slice: 0 %}
{% if property.last != blank and property_first_char != '_' %}
<span class="order-list__item-variant">{{ property.first }}: {% if property.last contains '/uploads/' %}<a href="{{ property.last }}" class="link">{{ property.last | split: '/' | last }}</a>{% else %}{{ property.last }}{% endif %}</span><br/>
{% endif %}
{% endfor %}Questions
Will gift card recipient details still show?
Yes. The new condition is wider, so gift card lines still print the recipient’s name and message.
How do I hide one property?
Name it with an underscore at the start (for example _internal_id) in your product form. The email skips those keys.
Related tools and guides
- Add the fields to your product page (line item properties generator)
Liquid Snippet Studio