Item Name Tag for Email Template

0
Answered

I understand this tag {{shipment.list_of_line_items}} list all shipping information. However what is the tag for if I only want to mention the item name they just purchased?

Is it {{shipment.item_name}}

Official Comment

Hello Cornelius, and thank you for posting to our community!

In order to list only the item name without the quantity or price information, you will need to use our shipment.line_items liquid variable that is discussed in the link below.

How to: Design a custom Email Template

Essentially you can use this code: {{ shipment.line_items | sort: 'name' | columns: 'sku qty name price total' }}, and remove the column names you don't need like sku, qty, price, and total.

I hope that information helps.

Thank you and happy shipping!

 

Comment actions Permalink

Add a Comment

Please sign in to leave a comment.