Line items in customer confirmation emails not showing

Tourist
8 0 0

I'm having trouble getting the custom line items to show up in the emails sent to the customers.

This is the code I've used...

 

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

taken from here https://help.shopify.com/en/themes/customization/products/features/get-customization-information-for...

 

I've also tried this...

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

taken from here https://help.shopify.com/en/themes/liquid/objects/line_item#line_item-properties

 

Neither one works for me in the order confirmation or new order emails.

Any help would be appreciated. Thanks

0 Likes

Hello 

What you get in output after running refered code.

Want to modify or custom changes on store hire us.
If helpful then please Like and Accept Solution .
Email: pallavi@oscprofessionals.com
Skype : oscprofessionals-87
Content Writer | Digital Marketing | SEO Expert | Site Optimization | Web Design | Web Development
0 Likes
Tourist
8 0 0

I get no output, that's what is so strange.  I did get the {{ line.title }} to appear on a email preview but thats it.  I'm using shopify's free narrative theme if that helps at all.  Thanks for any help you can provide.

0 Likes
Tourist
8 0 0

Hi

 

 

0 Likes