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
    1. Sign in at admin.shopify.com with the account you use for your store.
    2. If you are staff rather than the owner, ask the owner to give you Settings permission in Settings › Users.

    Step-by-step guide (opens in a new tab)

  • Shopify’s email template to paste into

    How to get this: Shopify’s email template to paste into
    1. Settings › Notifications › Customer notifications, open Order confirmation (or the email the tool names), then Edit code.
    2. Copy the current code somewhere safe first, so you can undo.

Make the snippet

Steps

  1. In Shopify admin, go to Settings › Notifications › Customer notifications and open Order confirmation. Click Edit code.
  2. Tick “Cart attributes” in the builder and copy the section.
  3. Paste it above the Customer information section (search for <h3>Customer information</h3>, then go up to <table class="row section">).
  4. 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.

More guides