Adding Custom META fields to Packing Slip

cotty
Excursionist
18 0 4

Hi,

Trying to custom META fields to the packing slip (bin location of product in warehouse).

Currently, I'm adding is next to SKU:

 

 

              <span class="line-item-description-line">
                {{ line_item.sku }} | Bin Location: {{ product.metafields.my_fields.bin }}
              </span>

 

 

 

Here's how I setup the meta field:

Screenshot 2021-09-28 at 16-58-10 LEDSpace ~ Product metafield definitions ~ Shopify.png

 

Here's the current result (I'm expecting a bin location to show where the red underlining is):

result.png

Am I warm or way off with getting to the result I need? 

Replies 12 (12)
MamounZater
Tourist
3 0 1

I am waiting the answer ,I have done the same ,but no result!

cotty
Excursionist
18 0 4

@MamounZaterlet me know if you find a way in the meantime. I feel like I've tried everything, but probably missing something incredibly obvious.

MamounZater
Tourist
3 0 1

still searching for solutions !

I will let you know once I knew

 

Anto_S
Shopify Partner
114 4 16

If bin locations on a packing/picking slip are what you need, you could see if this solution works for you on Sheet Master https://apps.shopify.com/sheet-master (currently free).

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

Anto_S_0-1635780900589.png

 

Automating Commerce at Comstack.co
Prisc9
New Member
5 0 0

Hi,

 

I would need the answer to this as well. Anyone ? 🙂

Thanks !

Zac4
New Member
4 0 0

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

VincentP
New Member
1 0 0

I have used the same logic... no result. What's the solution?

Laken2244
New Member
1 0 1

I'm trying to figure this out now! Desperately need this to work!

playcode3
Tourist
6 0 0

 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.

bzys
New Member
2 0 0

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.

 

https://help.shopify.com/en/manual/shipping/setting-up-and-managing-your-shipping/packing-slips-vari...

 

 

binneywood
Tourist
3 0 1

Have the same problem, just seems impossible 😞

basilkhan
Shopify Partner
16 0 4

Hi @cotty,

 

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.  

 

Here's a quick demo I made to show how to add the bin locations for each product on the Shopify packing slip: 🎥 https://www.loom.com/share/a949c18c1b544f579cd8cc2a3de1c442

 

basilkhan_0-1655225270321.png

To summarize: 

  1. Add bin locations as the batch name in product batches with a high quantity and no expiry date in Freshly
  2. Enable order metafields in Freshly preferences.
  3. Modify the template for the Shopify packing slip. I have included the template here: https://gist.github.com/basilkhan05/a94ee86cf6fe3ae7887da0348c79dd1d

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🙂

Co-founder at Freshly Commerce | Building Simple Bundles, Freshly Inventory, and more!