Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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
{% 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?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024