Globo is the company specializing in website design and development in Vietnam.
16, 24 Vo Chi Cong Street, HN
Follow Us

Metafield data in Liquid

Estimated reading time: 1 min
  • What is Metafields?

Metafields are a flexible way for your app to add and store additional information about a Shopify resource, such as a product, a collection, and many other owner types. The additional information stored in metafields can be almost anything related to a resource. Some examples are specifications, size charts, downloadable documents, release dates, images, or part numbers.

Merchants and other apps can retrieve and edit the data that’s stored in metafields from the Shopify admin. You can also access metafields in themes using Liquid and through the Storefront API.


  • How to get the customer metafield? 

When customers are created from the form register, the app stores all the information mapped from the form’s settings into the metafield including the label and value.
Example of how to get the customer metafield:

Example 1: {{ customer.metafields.g_formbuilder.metafields.value[key] }}

Key they get from the column Setting > Data column > Key

Example 2: {{ customer.metafields.g_formbuilder.metafields.value[’email’] }}


  • Where is the data for custom fields stored?

Our app stores custom data in two places; the app’s database and Shopify’s customer metafields.

When a customer account is created or updated by our app and the data being saved contains values for custom data columns, then our app will store this additional information on the Customer resource/object in Shopify using metafields.

A customer’s metafield data can be accessed : On the storefront using Liquid




If you do encounter any difficulty while proceeding with these steps, don’t show any hesitation to contact us promptly via the email address apps@globosoftware.net

We are always willing to help with all sincerity!



Was this article helpful?
Dislike 5
Views: 494