How can we help?

Basil Khan
Written by Basil Khan

Add batch details to Shopify packing slips

Available on all plans except Freshly Essential.


Once you have enabled metafields in Freshly, you can use the batch details in Shopify packing slips. In your Shopify admin, you can make changes to your packing slip templates by clicking the Edit button in the Packing slips section of the Shipping and delivery page.

From there you can access the inventory batch details as JSON string using the following variable to add batch details to your order packing slip:

order.metafields.freshly.inventory_batches

If you would like to display a batch field or fields, you can paste the following snippet where you have access to the line_item inside a for loop in the liquid template.

You can find the code snippet here: Github Gist

To learn more about making changes to your Shopify packing slip templates, visit the Shopify help center

Categories: