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
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.