Shopify Metaobjects vs Metafields: Where Each Detail Belongs
Choose Shopify metafields, metaobjects, or both by separating product-specific facts from reusable content, including the tricky case of material composition.
Use Shopify metafields for extra information attached to a product, variant, or another existing record; use metaobjects for structured records that need their own fields and editing workflow. When products share one of those records, use a metafield reference to connect them: the answer to Shopify metaobjects vs metafields is often both.
The harder decision is what should be shared. A fabric description might belong in a reusable material entry, while the percentage of that fabric belongs to a particular garment. Putting both in the shared entry makes the next catalog edit dangerous. This guide helps store owners and merchandising teams choose the right structure before commissioning theme work or moving existing content.
Choose the editing behavior before the field type
Start with three questions: what does this information describe, where should staff edit it, and which products should change when they save? Shopify's custom data overview distinguishes extending an existing resource with a metafield from creating a multi-field object. Translate that distinction into an ordinary merchandising task.
- A product-specific fact: a short assembly note that differs between furniture products. A product metafield can hold the note without creating a separate library of entries.
- A reusable record: a designer profile with a name, portrait, and biography. A metaobject lets the team maintain that profile separately and assign it to relevant products.
- A shared record with product-specific details: a material profile used in several garments, each with its own composition. Keep the shared material information separate from the composition of each garment.
These are proposed examples, not client case studies. The distinction is about responsibility for the information, not a rule that every repeated word deserves a metaobject. Two products can happen to have identical notes today while needing independent edits tomorrow.
My decision test is to ask the merchandiser to describe the next likely change. “Correct this designer's biography everywhere” points toward a shared entry. “Change the assembly note for this product only” points toward a product field. If the team cannot agree which products should change, settle that question before creating definitions.
When a metafield is enough
A metafield extends an existing Shopify record. Its definition gives it a name, an identifier such as custom.assembly_note, a data type, and optional validation. Shopify's definition instructions also recommend using a matching standard definition when one is available.
For the assembly-note example, go to Products > open a product > Metafields > Add definition. Enter the field name, review its namespace and key, and choose the appropriate text type. Add a description explaining what staff should enter. Save the definition, then populate the product's field.
Shopify supports values on products and variants, as its metafield overview explains. Choose the owner carefully. Ask whether the information remains true when the shopper switches size, color, or another variant option. If it changes, brief the developer on variant-level data and how the display should respond to selection changes. A field on the product is not a substitute for deciding which variant's information the shopper needs.
Before adding custom color, fabric, or size fields, inspect the product category. Shopify's category metafields supply attributes tied to its product taxonomy, with entries that can be reused or customized. Category metafields can also connect to variant options. Avoid commissioning a parallel custom structure until you have checked whether the existing category attribute meets the requirement.
Stay with a simple metafield when it gives staff a clear place to edit and the value belongs to that record. A separate entry for every one-line note adds selection and naming work without necessarily making maintenance easier. Ask the person doing weekly catalog updates to try the proposed workflow before approving it.
When a metaobject earns its extra structure
A metaobject definition describes the fields; an entry contains the actual values. For a designer directory, the definition could contain Name, Portrait, and Biography, while each designer has an entry. Shopify's metaobject builder supports field types, validation rules, and a display name used to identify entries in the admin.
Go to Content > Metaobjects > Add definition. Name the definition, review its type identifier, and add the fields. Then use Content > Metaobjects > your definition > Add entry to create the actual records, following Shopify's entry workflow.
Choose display names that make the correct entry recognizable. “Designer profile” is a useful definition name but a poor name for every entry in its list. Give staff a way to distinguish two people with similar names, and document who approves the biography and image.
Use a metaobject when that independent record is useful: a designer profile, a store location, or a structured product highlight. Reuse is a strong reason, but the editing workflow matters too. Do not force an unrelated collection of product facts into one object merely because they appear together on the page.
For a concrete implementation of shared content, our reusable size-guide tutorial covers definitions, product assignments, and rendering. The decision here comes earlier: which information should share an identity, and which must stay separate?
Why you often need both
The metaobject stores the designer profile. A product metafield selects which designer belongs to that product. Shopify calls this referencing a metaobject; the reference is the connection, rather than a copied biography.
Go to Settings > Metafields and metaobjects > Products > Add definition. Name the field Designer, select the Metaobject type, and choose the intended definition. Select One value for one designer or List of values if the product needs several. Review storefront access and save, then assign entries on the relevant products.
A list is a content decision as well as a data type. If several designers can appear, specify their display order and how the page handles missing portraits or long biographies. Do not approve the model from a single example that contains only one short, complete entry.
Use actual reference fields for these connections. Shopify's data-modeling guide recommends reference types rather than storing handles or IDs in ordinary text fields. In the brief you send a developer, say “select a Designer entry” rather than “paste the designer's identifier.” That keeps the intended relationship explicit.
The mixed case: shared material, different composition
Consider an illustrative apparel catalog with two garments that contain cotton in different proportions. The material name and explanatory copy can be shared. The amount used in each garment is a separate fact. A reusable Cotton entry should not own the percentage of cotton in every product that references it.
Start with the simplest model that preserves that distinction. If you only need a readable composition statement on each product, a product text metafield may be enough. Do not build a materials database solely to display a sentence that nobody needs to query or reuse in structured form.
If the store needs reusable material profiles plus structured composition rows, a developer can propose three pieces:
- Material: a reusable metaobject containing the material name and approved description.
- Composition row: a metaobject containing a Material reference and the proportion used in this particular composition.
- Product composition: a product metafield holding a list of Composition row references.
Keep a composition row specific to its intended assignment unless sharing that row is deliberate. Give it an identifiable label and record which product uses it. The Cotton material entry stays reusable; a particular garment's cotton proportion stays with that garment's composition.
This applies Shopify's documented pattern for relationships with additional data. It adds another editing step and more rendering work, so request it only when the structured information has a real use. Ask the developer to demonstrate the complete editing task, including selecting materials and correcting a proportion, before filling the catalog.
For percentage-based composition, ask for numeric fields with an agreed range and a separate check that the full composition is complete. Do not accept a demonstration that only proves each row can be saved. Have the reviewer try an incomplete set of proportions and confirm how staff are told to correct it. Record whether that check is an editorial procedure or custom functionality included in the build.
My acceptance test is two edits with different scopes: changing the shared material description should reach both garments, while changing one garment's composition must leave the other garment unchanged. Write the expected outcomes into the project brief. This catches a modeling error that a polished product-page screenshot cannot reveal.
Confirm the theme can use the model
Saving data does not finish the storefront work. Shopify's display documentation requires compatible field types for theme connections and describes both dynamic sources and theme-code integration. A heading field, an image field, and a list of nested records are different display requirements.
Ask for a proof of display in the actual theme before populating hundreds of entries. For the designer example, preview a product assigned to one designer, another assigned to a different designer, and a product with no assignment. For the composition example, include multiple rows and ask the developer to explain how the nested references are rendered.
Agree what an empty value means. Should the section disappear, should a generic message appear, or should the product be held back from publication until staff complete the content? These are your operational choices; make them explicit instead of leaving the theme to decide accidentally.
Our guide to reusable Liquid sections explains the separate job of giving staff useful presentation controls. A sound data model and a usable theme section solve different parts of the merchandising workflow.
What to put in the implementation brief
Before migrating existing content, prepare a small sample that includes the awkward cases: one unique value, one genuinely shared record, an exception, and an empty assignment. Keep the original values and a record of the intended new assignments so someone can review the mapping.
Require the proposal to name the field owner, field type, entry labels, reference direction, display behavior, and editor responsible for each part. Also name any app or import process that reads the existing fields. Ask its maintainer to confirm the new model before retiring those fields.
Approve the move when a merchandiser can perform both a local correction and a shared update without guessing which products will change. If a plain metafield already supports that workflow, keep it. If a reusable record removes repeated maintenance, introduce a metaobject and its reference. Add an intermediate record only when the relationship itself carries information worth structuring.
Our Shopify development services can help model that content, connect it to the theme, and plan the migration. Bring examples of the edits your team needs to make; those are more useful starting points than a request to convert everything to metaobjects.