Pulling data from Custom Data Metafield

Topic summary

A user created a custom metafield to capture customer names from order pages and needs to display this data in an order printer template.

Issue: The attempted Liquid code {{ order.metafields.custom.customer_s_name }} is not working as expected.

Solution provided: Access the metafield value using the .value property:

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

Additional documentation on metafields is available in Shopify’s developer resources for further reference.

Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

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

@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