How to Add Metafields to Shopify Products (2026)

Last updated
Expert reviewed
5 min read
Jacques Blom
Jacques Blom
CTO at Fudge.

Key takeaways

  • Create metafield definitions in Settings > Custom data > Products.
  • Fill in metafield values per product from the product editor page (scroll down).
  • Display metafields on the page via Theme Editor dynamic sources or Liquid code.
  • Metafields are ideal for structured data: ingredients, materials, certifications, care instructions.

Product metafields let you attach custom data to products beyond the default fields Shopify gives you. Once you understand the two-step setup, they’re one of the most powerful tools in Shopify’s native toolkit.

Why you can trust us

We’ve worked on product data architecture for hundreds of Shopify stores. We also built Fudge — an AI storefront editor with a 5.0 rating on the Shopify App Store.


What are Shopify product metafields?

Metafields are custom data fields you define and attach to any Shopify resource (products, collections, pages, customers, orders, etc.).

Examples of product metafields:

The advantage of metafields over putting this content in the description: data is structured and consistent. You define the field once, fill it in per product, and display it anywhere you want on the page.


Step 1 - Create a metafield definition

Step 1. Go to Settings (bottom left of Shopify Admin).

Step 2. Click Custom data.

Step 3. Click Products.

Step 4. Click Add definition.

Step 5. Fill in:

Step 6. Click Save.


Step 2 - Fill in the metafield value per product

Step 1. Go to Products and open any product.

Step 2. Scroll to the bottom of the product editor. You’ll see a section titled with your metafield name (e.g., “Ingredients”).

Step 3. Click into the field and add your content.

Step 4. Save the product.

Repeat for each product that needs the field filled in.


Step 3 - Display the metafield on the product page

You’ve defined the field and filled it in. Now you need to show it to customers.

Option A - Theme Editor (no code)

Step 1. Go to Online Store > Themes > Customize.

Step 2. Navigate to a product page.

Step 3. In the Main product section, click Add block or find a text block.

Step 4. In the block settings, look for a Dynamic source option (a small database icon). Click it and select your metafield from the list.

Step 5. Save. The block will now pull content from the metafield for each product.

This works well for themes that support dynamic sources on product page blocks.

Option B - Liquid code

If your theme doesn’t surface the dynamic source option, you can output the metafield in Liquid:

{{ product.metafields.custom.ingredients }}

Add this in the product page template or a section. If you’re not comfortable editing Liquid, describe what you want to Fudge and it will add the output for you.

Want to display custom product data without touching code? Describe it to Fudge.
Try Fudge for Free

Useful metafield types and when to use them

TypeUse case
Single line textShort labels, certifications, single values
Multi-line textLonger descriptions, care instructions
Rich textFormatted content with bold, lists, links
List of single line textMultiple values (e.g., list of ingredients)
NumberDimensions, weights, specifications
URLLink to a document, video, or external resource

Metafields vs. product description

Both store content about a product, but they serve different purposes.

Description: Freeform content intended for the buyer to read. One field per product.

Metafields: Structured, typed data. Multiple fields per product. Each field has a defined format and can be queried, filtered, or displayed in a consistent way across your whole catalogue.

Use descriptions for narrative content. Use metafields for structured data you want to display consistently.

Jacques's signature
Display product metafields on your pages without writing Liquid.

You might also be interested in

How to Add Guarantees to a Shopify Product Page (2026)
Learn how to add trust badges, guarantees, and warranty information to your Shopify product pages using the Theme Editor or a custom section via Fudge.
How to Compare Products in Shopify (2026)
Shopify doesn't have a native product comparison feature. Here's how to add product comparison to your store
How to Customize a Shopify Product Page Layout (2026)
Learn how to customise the layout of your Shopify product page - reorder blocks, add sections, create custom templates for specific products, and go