π·How to add fields on new order notification emails to STAFF?
Please go to Settings -> Notifications -> Staff Notifications
Select New Order
Click on the Edit code button to access the email template


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 "

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.

PreviousHow to show custom fields on confirmation email to CUSTOMER?NextHow to add custom fields to fulfillment email notification?
Last updated