Skip to main content

What is a Metafield?

Metafields are a Shopify feature that provides extra storage space for additional data on your store's resources (products, collections, orders, etc.).

Key Components

ComponentPurpose
NamespaceGroups related metafields together (like folders)
KeyA unique identifier to reference stored information
ValueThe actual data being stored

Liquid Syntax

To display a metafield on your storefront, use this Liquid template syntax:

{{ product.metafields.namespace.key.value }}

Replace product with the appropriate resource type, and namespace/key with your metafield's actual values.

Creating Metafields

In Metafield Studio:

  1. Select the type of data
  2. Define the namespace
  3. Assign a key
  4. Enter the value
  5. Click Save
Important

Metafields don't automatically affect your store's functionality or storefront appearance they are backend storage only. You must customize your theme (using Liquid code or theme extension blocks) to display them. Proper implementation requires matching the namespace and key between your metafields and the Liquid code or theme block configuration.

Official Shopify Documentation

For a deeper dive into metafields, check out the official Shopify documentation: