# How can I add custom fields to new order notification emails sent to STAFF?

You can display custom field data in **New Order** notification emails by editing the staff email template in Shopify.

* Go to **Shopify Admin → Settings → Notifications → Staff Notifications**
* Select New Order
* Click on the ***Edit code*** button to access the email 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%252FATFsjHJI28yr214kfb8T%252FScreenshot%25202024-06-22%2520at%252011.42.36.png%3Falt%3Dmedia%26token%3D1b351003-9c8e-430d-a572-091cea71a03a&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=498612bf&#x26;sv=2" alt=""><figcaption><p>Notifications -> Staff notifications</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%252FZGYRWtUFtVheAkppOszN%252FScreenshot%25202024-06-22%2520at%252011.43.05.png%3Falt%3Dmedia%26token%3D63e0d624-a0b9-468b-b4cf-1507e3e33d01&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=c5e385c1&#x26;sv=2" alt=""><figcaption><p>New Order</p></figcaption></figure>

Simply place your cursor on **email body** and use the keyboard shortcut Ctrl + F (or Command + F on Mac) to activate the search function there. Please look for " **line.variant.title** "

<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%252FGX8EaKrxDVS1FC7Zgy9Y%252FScreenshot%25202024-06-22%2520at%252011.49.36.png%3Falt%3Dmedia%26token%3D78ab542d-61b7-4c6e-9496-c371233f437e&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=2c3a7468&#x26;sv=2" alt=""><figcaption><p>Find line.variant.title</p></figcaption></figure>

Once you find "**if**" statement for line.variant.title, please find "**endif**" to ensure that this statement ends properly.

Right after that **endif** statement, please copy and paste this code snippet below.

Copy

```
{% 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 %}
```

Here is how it may look like eventually.

<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%252F3pOWJdZBKo60mK1paSOi%252FScreenshot%25202024-06-22%2520at%252011.50.29.png%3Falt%3Dmedia%26token%3Dc04d6fae-23a7-4328-92b4-f3f80cd576e7&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=9a5ff1c8&#x26;sv=2" alt=""><figcaption><p>Final email template after the changes</p></figcaption></figure>


---

# 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-add-custom-fields-to-new-order-notification-emails-sent-to-staff.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.
