What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Access Order Metafields Via Liquid

Access Order Metafields Via Liquid

ktbishop
Shopify Partner
22 1 4

Hi,

I've been looking into whether or not order metafields would be appropriate for a scenario I'm trying to deal with: let's say I run a shopify store that sells items with unique serial numbers. As the vendor, I don't know what serial number is assigned to the line items of an order until my fulfillment service actually fulfills the order. I think this could be handled with order metafields, but I'd like to be able to include this unique serial number info in the Shipping Confirmation email that goes out to my customer upon order fulfillment. 

From looking at the email variables documentation it appears as though product and variant metafields are accessible via Liquid, but not order metafields. Are there any enhancements planned to make order metafields available via the Liquid API? If not, what would be the best way to get this info from each order and apply it to the Shipping Confirmation email? 

Kyle B.
Reply 1 (1)

Volconic
Shopify Partner
11 0 0

Hi @ktbishop - On the off chance that your still looking for a solution. We've built an App that should help you. Check it out here https://apps.shopify.com/volconic-passport and let us know if you have any questions. If your using the Order Printer App you can use variables to include the Serial Reference link.