Shopify notification email guide
Show cart attributes in Shopify notification emails
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.
Steps
- In Shopify admin, go to Settings › Notifications › Customer notifications and open Order confirmation. Click Edit code.
- Tick “Cart attributes” in the builder and copy the section.
- Paste it above the Customer information section (search for <h3>Customer information</h3>, then go up to <table class="row section">).
- 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.
Hidden attributes
Apps often store their own data in attributes that start with _ (for example _source). The snippet skips those, so customers only see what you meant them to see.
Questions
Can I show just one attribute?
Yes: {{ attributes["Gift wrap"] }} prints one by its name. Wrap it in {% if attributes["Gift wrap"] != blank %} so empty ones don’t show.