I am looking to add a line to my invoices showing the pick bin number so that we can do everything form one piece of paper.
How do I add the metafield that I have created to the invoice?
We are using Shopifys Order Printer for our invoices.
A user is attempting to display pick bin location information on invoices generated through Shopify’s Order Printer by adding a custom metafield to the invoice template.
Attempted Solution:
{{ line_item.product.metafields.custom.your_metafield_name }} within the line items loop{{ line_item.product.metafields.custom.pick_bin_location }} in their template codeCurrent Status:
Outcome:
The issue remains unresolved, with the original poster requesting additional assistance from the community.
I am looking to add a line to my invoices showing the pick bin number so that we can do everything form one piece of paper.
How do I add the metafield that I have created to the invoice?
We are using Shopifys Order Printer for our invoices.
Can you try adding {{ line_item.product.metafields.custom.your_metafield_name }} to your invoice template, somewhere inside the loop over line_items? I just tried and it worked for me.
I added in below but it is not showing the location.
Qty Item SKU Pick Bin Price {% for line_item in order.line_items %} {{ line_item.quantity }} {{ line_item.title }} {{ line_item.sku }} {{ line_item.product.metafields.custom.pick_bin_location }} {% if line_item.line_level_discount_allocations.size > 0 %}Can you double check that the metafield namespace and key is right? It’s in Settings > Custom data > Products > your metafield name, the field “Namespace and key” should be “custom.pick_bin_location”. If it’s correct then I’m out of ideas ![]()
Anyone else have a solution please?