App reviews, troubleshooting, and recommendations
I am trying to get the product metafield "custom.bin_location" into the order printer app for the packing slips but any of the existing forums solutions don't appear to be working.
I have tried
{% for line_item in line_items %}
<td>{{ line_item.product.metafields.custom.bin_location }}</td>
{% endfor %}
Does anyone know if/how to get product metafields into the packing slips. Thanks
This should work for you:
{% for line_item in line_items %}
<td>{{ line_item.product.metafields.bin_location.value }}</td>
{% endfor %}
or if the metafield is on the variant level:
{% for line_item in line_items %}
<td>{{ line_item.variant.metafields.bin_location.value }}</td>
{% endfor %}
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024