Skip to content

How to show line item properties in Draft Order Invoice

soulchild edited this page May 9, 2024 · 10 revisions

To edit the template to include line item properties, go to your store admin > Settings > Notifications > Draft Order Invoice.

settings, notification, customer draft order invoice

Add the code shown below in the template (above the mentioned location), then scroll up and click "Save" on the top right corner.

The edited invoice template will look like this :
invoice template with line item properties

Email subject :

Invoice {{name}}

The line item snippet :

{% unless line.properties == empty %}
<ul style="list-style-type: none; padding: 0;">
  {% for property in line.properties %}
  <li><span class="order-list__item-variant">{{ property.first }}: {{ property.last }}</span></li>
  {% endfor %}
</ul>
{% endunless %}

paste instruction