What is Metafield?

Besides Shopify's default product attributes, merchants could use metafields to save additional product information.


Metafields are extra, hidden data in each object or in the shopfront that show shoppers more about the object without actually revealing them. Metafields are used to save additional data about your products, variants, collections, orders, and blogs, which are beyond what Shopify offers you by default.

For instance, you want the products to have  Material data, however, Shopify Products does not have the Material field; there are only Collection images, Condition, Theme templates, Products, Tags, etc. In this case, you need to create a Metafield named Material.

Shopify merchants need to use a metafield-related app/ Shopify Metafield setting to create and manage metafields.


With our Product Filter & Search app, you could use metafields as an alternative product attribute to:


Metafields are made up of three parts below:

  • Namespace - A category or container that differentiates your metadata from other metafields.
  • Key - The name of the metafield.
  • Value - The content of the metafield. In most cases, the value is what will be displayed on the storefront or used by the app.

If metafield is {{ product.metafields.customAttributes.gender }}, then  Namespace would be customAttributes and Key would be gender

Examples of Metafields

Here are 2 example metafields named Description_tag and Material.

The two metafields are created by a Metafield app and assigned to the specific "Leather jacket" product.