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.

Pulling data from Custom Data Metafield

Pulling data from Custom Data Metafield

Johnston
Visitor
1 0 0

I created a custom data to pull from the metafield at order. The Customer's Name input in the order page is needed to pull to integrate into the template in order printer. I tried {{ order.metafields.custom.customer_s_name }}, but it seems like its not working

Reply 1 (1)

kjchabra
Shopify Partner
26 1 7

@Johnston I believe the value can be accessed via the value property. In your case:

 

{{ order.metafields.custom.customer_s_name.value }}

More info on metafields is here