Hello all.
Currently trying to add bin location data to packing slips for when I’m shipping products and I have the packing slip template code implemented correctly to where it shows on the packing slip the data from order.metafields.stock.bin, but the problem is auto-populating it when an order is created from variant.metafields.stock.bin . I have a workflow set up with value code being:
{% for lineItems_item in order.lineItems %}{% for metafields_item in lineItems_item.variant.metafields %}{% if metafields_item.key == ‘bin’ and metafields_item.key != ‘’ %},{{ lineItems_item.sku }}:Bin:{{ metafields_item.value }}{% endif %}{% endfor %}{% endfor %}
I did grab this code from a different forum post here: https://community.shopify.com/c/technical-q-a/adding-line-item-location-to-packing-slip/m-p/2023589
Here’s a picture of the work flow:
If anyone knows what I’m doing wrong please let me know, thank you!





