Hello,
We are trying to display the text we have entered in an items barcode field on an order packing slip underneath the sku. We have tried using {{ line_item.variant.barcode }} but it fails to pull the barcode for the item in question.
This is the snippet of code that we are editing in the packing slip template:
{% for line_item in line_items_in_shipment %}
…
{{ line_item.title }} {% if line_item.variant_title != blank %} {{ line_item.variant_title }} {% endif %} {% if line_item.sku != blank %} {{ line_item.sku }} {% endif %} **{% if line_item.variant.barcode != blank %}** **** **{{ line_item.variant.barcode }}** **** **{% endif %}**
... {% endfor %}Any advice?
Thanks.