6 min readQuanify

Metafields & Metaobjects — Adding Custom Data Without Any App

Need to display ingredient lists, care instructions, a size guide that's different for each product, or per-product FAQ sections? Shopify has had a built-in solution since 2021 — no app, no extra cost, no impact on your store's speed. Most merchants just don't know it exists.

shopifymetafieldsmetaobjectscustom-dataĐọc bằng Tiếng Việt
Need to display ingredient lists, care instructions, a size guide that's different for each product, or per-product FAQ sections? Shopify has had a built-in solution since 2021 — no app, no extra cost, no impact on your store's speed. Most merchants just don't know it exists.

What is a Metafield and when do you need one?

A Metafield is a custom data field you define and attach to a product, collection, page, order, or customer. Shopify's default structure only includes fixed fields: title, description, price, images, vendor. When your products need additional specific information — technical specifications, care instructions, ingredients, warnings, document downloads — metafields are the right tool.

The most important thing to understand about metafields: they're structured data, not just extra text stuck into a description field. This means different types of content get appropriate formatting, values can be validated, and the data can be connected to your theme dynamically — so the same layout displays the right content for each individual product automatically.

🖼 Image 1 — Metafields displayed on a product page
A real Shopify store product page (fashion or skincare vertical) — below the product image and price, showing custom sections rendered from metafields: an "Ingredients" tab with a formatted bullet list, a "How to use" tab with numbered steps, and a "Size Guide" table with a link. Three arrows pointing to these sections, all labeled: "Rendered from metafields — no app required, no extra cost, no speed impact."

Common use cases where metafields shine: ingredient lists for cosmetics or food products, care and washing instructions for fashion, technical specifications for electronics, certifications and awards, per-product FAQ content, downloadable files like PDF manuals or assembly guides, and cross-references to related content like a size guide shared across multiple products.

Creating a metafield definition in Admin

Go to Settings → Custom data → Products (or Collections / Pages / Customers / Orders depending on what you're attaching data to). Click "Add definition."

🖼 Image 2 — Creating a Metafield Definition
Screenshot of Admin > Settings > Custom data > Products with the "Add definition" form open: Name field showing "Ingredients," Namespace & Key showing "custom.ingredients" (auto-filled), Content type dropdown set to "Multi-line text," and an optional Description field. Right side preview shows the newly created metafield appearing in the product admin definition list. Each form field annotated with a colored arrow explaining its purpose.

The three fields that matter:

  • Name — The display name in Admin. Keep it clear and human-readable: "Care Instructions," "Ingredients," "Technical Specs"
  • Namespace & Key — The technical identifier used to reference this metafield in Liquid code and Dynamic Sources. Shopify auto-generates one, which you can keep: custom.care_instructions. The namespace groups related metafields; the key identifies the specific one
  • Content type — The data format: Single-line text, Multi-line text, Number (integer or decimal), Date/time, True/false (checkbox), File (PDF, image), URL, Reference (to another product, collection, or metaobject), Color, Weight, Dimension, Volume — the right type ensures correct validation and display

Once you've created the definition, go to any product and scroll to the very bottom — a new "Metafields" section appears where you can enter the content for that specific product. Each product can have different content in the same metafield.

Displaying metafields in Theme Editor with Dynamic Sources

Creating a metafield definition and filling in content is only half the job — the content also needs to appear somewhere on the product page for customers to see. This is where Dynamic Sources come in (covered in NC-01).

In Theme Editor: select a text block on the product template → click the ⚡ lightning bolt icon next to the content field → choose your metafield from the dropdown. That block will then automatically display the correct metafield content for whatever product is being viewed — no manual linking needed per product.

💡 Dynamic Sources in Theme Editor only work with OS 2.0 themes. If your theme is an older architecture, you'll need to call the metafield directly in Liquid code within a section file: {{ product.metafields.custom.ingredients }}. The metafield data is the same — only the display method differs.

Metaobjects — custom data types you define entirely

If metafields attach data to existing Shopify objects (products, collections, etc.), Metaobjects are completely custom data structures you create from scratch — with multiple fields inside, instances you create and manage, and the ability to be referenced from multiple products or pages.

🖼 Image 3 — Size Guide Metaobject Diagram
Entity-relationship diagram: Center is a "Size Guide" Metaobject with internal fields (Height: 165–170cm / Weight: 55–65kg / Recommended size: M). Three arrows from different products (Polo Shirt / Hoodie / Jacket) all pointing to the same "Men's Size Guide" Metaobject with a reference connection. Caption: "1 metaobject, many products referencing it — update the size guide once and all products automatically reflect the change."

The size guide example shows why Metaobjects are powerful: rather than duplicating the same size chart content across 50 product descriptions, you create one Size Guide Metaobject entry and have all relevant products reference it. When the size chart needs updating (different season, new fit), you edit the Metaobject once and every product updates instantly.

Other strong Metaobject use cases: brand or author profiles, store location data, FAQ collections reused across pages, team member bios, ingredient specifications used across product categories. Go to Settings → Custom data → Metaobjects → Add definition to create the structure, then Content → Metaobjects to create actual entries.

Which apps can metafields replace?

NeedPreviously requiredWith Metafields
Size guide / size chartSize Chart app ($5–15/month)Metaobject + Dynamic Source in theme
Ingredient listsApp or manual description editsMulti-line text metafield
Per-product FAQFAQ app ($10–20/month)Multi-line text or JSON metafield
Downloadable filesFile Downloads appFile-type metafield
Product labels / badgesLabels & Badges appBoolean or text metafield + Liquid condition

The speed and cost savings from replacing apps with metafields are real and measurable. Every app removed is one less JavaScript file loading on every page, one less monthly charge, and one less potential source of theme conflicts. Metafields load with the page data directly — zero additional JavaScript, zero additional requests.

Next in the series
[NC-05] Shopify SEO — A Complete Guide from Technical to Content →