Line items in customer confirmation emails not showing

Highlighted
New Member
1 0 0

Can you give me the code you used? I am having this same issue but I am not sure what code to use to fix it. I tried this:

{% unless line_item.properties == empty %}
<ul>
  {% for property in line_item.properties %}
  <li>{{ property.first }}: {{ property.last }}</li>
  {% endfor %}
</ul>
{% endunless %}

 but it didn't work do I need to change line_item.properties to line_title.properties ? 

0 Likes
Shopify Partner
3 0 0

I added the code

 

{% for p in line.properties %}{% unless p.last == blank %} - {{ p.first }}: {{ p.last }}{% endunless %}{% endfor %}

 

between

 

{% if line.variant.title != 'Default Title' %}
<span class="order-list__item-variant">{{ line.variant.title }}</span><br/>
{% endif %}

 

and

 

{% if line.refunded_quantity > 0 %}
<span class="order-list__item-refunded">Refunded</span>
{% endif %}

 

and it seems to work for me

good luck

0 Likes