What is the liquid variable to show Product Type on custom packing slip?

What is the liquid variable to show Product Type on custom packing slip?

eggplanted
Tourist
8 0 9

To help our fulfillment team, I am trying to show the product type for line items on our packing slip. Product type is not referenced as a variable in the docs, but I'm sure it can be done, since other people have managed to pull in other more obscure variables into their packing slips such as metafields etc.

 

Here is the simplified code, this does not output the product type. I have tried

  • line_item.product.type
  • line_item.type
  • line_item.product_type

 

    {% for line_item in line_items_in_shipment %}
      <div class="flex-line-item">
        <div class="flex-line-item-description">
          <p>
            {% if line_item.product.type != blank %}
              <span class="line-item-description-line">
                {{ line_item.product.type }}
              </span>
            {% endif %}
          </p>
        </div>
      </div>
    {% endfor %}

 

 

Can anybody help me solve this?

Replies 0 (0)