Order Printer App and Line Item Properties

Highlighted
Shopify Partner
28 0 9

Hi, is there any way to access line item properties in the Order Printer app? I need to be able to access these properties in order for my invoice template to function. At the moment it looks as if Order Printer can't access this data.

(Background: We use line item properties to assign items into groups, which represent the contents of custom goodie bags. The customer can order multiple custom goodie bags, each one filled with a different selection of items)

Link to store: http://buildabagpartyfavours.ca

Screenshot of cart for clarification:

0 Likes
Shopify Partner
2 0 1

Hi,

I thought I had the same problem, but I was making a mistake in the code. The solution to display line item properties in the Order Printer App is this:

Replace line_item default code with the following:

{% for line_item in line_items %}
      <tr>
        <td>{{ line_item.quantity }} x</td>
        <td>{{ line_item.title }}{% for property in line_item.properties %}<p>{{ property.first }}: <em>{{ property.last }}</em><p>{% endfor %}</td>
        <td>{{ line_item.price | money }}</td>
      </tr>
{% endfor %}

Hope this helps!

0 Likes