Im trying to add the weight of each line item onto our packing slips but the weight variables always show as zero even though values have been set for the items.
If I use this:
{{ line_item.weight | weight_with_unit }}
it just shows as:
0 g
Ive also tried using both
{{ line_item.grams | weight_with_unit }}
and
{{ line_item.grams }}
and just get the same result.
Ive placed this within the main for loop as you can see here:
{% for line_item in line_items_in_shipment %}
{% if line_item.image != blank %}
{{ line_item.image | img_url: effective_image_dimensions | img_tag: '', 'aspect-ratio__content' }}
{% endif %}
{{ line_item.title }}
{% if line_item.variant_title != blank %}
{{ line_item.variant_title }}
{% endif %}
{% if line_item.sku != blank %}
{{ line_item.sku }}
{% endif %}
{{ line_item.weight | weight_with_unit }}
{% if line_item.weight != blank %}
{{ line_item.weight | weight_with_unit }}
{% endif %}
{{ line_item.shipping_quantity }} of {{ line_item.quantity }}
{% endfor %}
Anyone know how I can get it to show the correct values? Is there a different bit of liquid I need?
Thanks