Hello,
I’m trying to show the Location inventory in the Order Printer app packing slip:
I have added that through a metafields:
But it’s not working. Here’s the code:
{% for line_item in line_items %}
{{ line_item.title }}
{% if line_item.variant_title != blank %} <small>
**Colors:** {{ line_item.variant_title }}
</small> {% endif %}
{% if line_item.sku != blank %}
<small>

</small>
{% endif %}
{% if line_item.variant.barcode != blank %}
<small>UPC: {% assign sorted_line_items = line_items | sort: 'variant.barcode' %} {{ line_item.variant.barcode }}</small>
{% endif %}
{% if line_item.product.metafields.warehouse_location.value != blank %}
<small>Warehouse Locations: {{ line_item.product.metafields.warehouse_location.value }}</small>
{% endif %}
{% if line_item.variant.metafields.locationInventory.info.value != blank %}
<small>Location Inventory: {{ line_item.variant.metafields.locationInventory.info.value }}</small>
{% endif %}
{{ line_item.quantity }}
{% endfor %}
It will be great if any have a solution.