# 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.

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FyK2UzMIj52LhIKTbIPku%252FScreenshot%25202024-07-14%2520at%252015.50.13.png%3Falt%3Dmedia%26token%3D1aa85d14-f8fe-405b-a8eb-3f81e96a73ef&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=dd73b6a3&#x26;sv=2" alt=""><figcaption><p>Settings -> Notifications -> Customer Notifications -> Order Confirmation</p></figcaption></figure>

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FibB6IHqsQZ5TG7hBpKJA%252FScreenshot%25202024-07-14%2520at%252015.51.23.png%3Falt%3Dmedia%26token%3D60adb4a1-96ef-41fa-93bb-5120a5b0ee11&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=cd14111c&#x26;sv=2" alt=""><figcaption><p>Edit Code</p></figcaption></figure>

{% hint style="danger" %}
Please allow approximately 30 seconds for the changes to take effect.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://minimateapps.gitbook.io/customfield/how-to.../how-can-i-show-custom-fields-in-the-order-confirmation-email-sent-to-customers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
