The discussion centers on displaying custom product metafields (specifically warehouse bin locations) on Shopify packing slips. The original poster attempted to access product metafields directly in the packing slip template but found they weren’t rendering.
Core Challenge:
Product and variant metafields are not directly accessible in Shopify’s default packing slip templates, which limits straightforward implementation.
Working Solutions Identified:
Order Metafields Approach: Use order-level metafields instead of product metafields. One detailed solution involves:
Creating variant metafields for bin locations
Setting up corresponding order metafields
Using Shopify Flow to automatically copy variant metafield data to order metafields when orders are created
Modifying the packing slip template to display the order metafield data
Third-Party App: The Freshly app was recommended for lot/batch tracking, which can repurpose batch names as bin locations and sync them to order metafields.
Direct Product Reference: Some users reported success accessing metafields via line_item.product.metafields.namespace.key syntax, though results varied.
Current Status:
Multiple working implementations have been shared with code examples and step-by-step instructions. The consensus is that order metafields combined with Shopify Flow provide the most reliable solution for this use case.
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
You can set up custom warehouse bin locations, and generate pick lists in custom formats - happy to help with a free custom setup in case you need it. Video demo: https://www.youtube.com/watch?v=O12azLZcmjo
Are you available to hire for some packing slip customization? I have 2 checkout questions and if possible shipping method id like to add. If they wont let us is there another form with more variables I could change to a packing slip? Pondmegastore@yahoo.com thank you
Same, can’t find a solution. I googled like crazy, nothing works. I want to add a “location” product metafield I created so that I can add it to the Packing slip to each product making it easier to pull the product from my bins and racks.
We are trying to do the same exact thing. We ran into a roadblock after finding that the product object (which should contain the metafields) is not available from within the line_item field within the custom packing slip Liquid.
Your code looks good, but since product or variant metafields aren’t accessible in the Shopify packing slips, I would recommend using Order metafields. The Freshly app, which is mostly used for lot/batch tracking, can also be used for adding bin locations for each product in the order.
And you should be all set! You can also use Freshly packing slips to do the same where you wouldn’t need to rely on Shopify metafields being up-to-date with the recently updated bin locations. Let me know if you have any other questions or reach out to our team at hello@getfreshly.io.
I use that code in the packing slip template which can be found and edited in the Shipping and delivery settings. If a product on the packing slip has information in its barcode section or in the subtitle section (This is a meta field that we use), it will be displayed on the packing slip. If there is no information in one or either of those sections, it will not be displayed.
Thanks, after fooling around this morning I got it to work, had to make a few changes but got the meta field data to show after getting the correct metafield call working
Line item metafield is not available in the packing slip order template. You need to save the line item metafield as an order metafield then use it like this.