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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Access Order Metafields Via Liquid

Access Order Metafields Via Liquid

ktbishop
Shopify Partner
24 1 5

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.
Replies 0 (0)