πŸ›οΈHow can I show custom fields in the order confirmation email sent to CUSTOMERS?

You can display custom field data in the order confirmation email by editing the Shopify email template.

  1. Go to Shopify Admin β†’ Settings β†’ Notifications

  2. Open Customer Notifications

  3. Select Order Confirmation

  4. Click Edit code to access the email template

  5. Place your cursor inside the email body

  6. Use Ctrl + F (or Command + F on Mac) to open the search function

  7. Search for line.variant.title

  8. After locating β€œ{% endif %}β€œ, paste the following code snippet:

{% for property in line.properties %}
  {% assign property_first_char = property.first | slice: 0 %}
  {% if property.last != blank and property_first_char != '_' %}
    <span class="line-item-description-line">
      {{ property.first }}: {{ property.last }}
    </span><br/>
  {% endif %}
{% endfor %}

Click the 'Save' button to apply the changes to the template.

Settings -> Notifications -> Customer Notifications -> Order Confirmation
Edit Code
triangle-exclamation

Last updated