Use a Shopify metafield for an extra attribute belonging to a product, variant or another existing resource. Use a metaobject for a structured content record with its own fields. When a product needs that record, a reference metafield connects them. They often work together [1].
The useful question is who owns the information and what should change together. A bottle’s capacity belongs to that product or variant. A care guide shared by several bottles can have its own title, instructions and image. Choosing that relationship before entering the content makes later edits easier to control.
Start with the field Shopify already provides
Check whether a standard Shopify field or an existing category metafield already describes the information. Creating a second custom field for the same fact gives your team two places to maintain it. Shopify’s category metafields provide attributes associated with product categories, and some use metaobject entries behind the scenes [2].
If a custom field is needed, decide whether the value belongs to the whole product or changes with the selected variant. In our illustrative example, two separate bottle products have capacities of 500 mL and 750 mL. If those sizes were variants of one product instead, the capacity would need variant-level ownership and a display connection that follows the selected variant.
Separate the definition from the content
A definition describes the structure. A metafield definition specifies what a field accepts; each product then has its own value. A metaobject definition describes a set of fields; each entry is one record filled with content [1–3]. Think of “Care guide” as the structure and “Bottle care” as one entry.
- Product capacity: a typed volume metafield with a value and unit, such as 500 mL. Each product keeps its own value [7].
- Care guide: a metaobject definition with a title, instructions and an image field. Choose field types and validation to match how editors will use them.
- Bottle care: an entry containing the actual approved content. Other guides can be separate entries using the same definition.
- Product care guide: a metaobject-reference metafield that selects the entry for that product. Choose a single reference when one guide is intended, or a list when the product legitimately needs several [4].
The reference matters. Copying “Bottle care” into a plain text field does not create the same typed relationship. Likewise, pasting the instructions into every product leaves independent copies that can drift apart. Use the reference when the products should share the same maintained record.
Make shared editing intentional
In the example below, Bottle A and Bottle B reference the same guide entry. Their capacities remain independent. Editing the shared guide changes the content those references resolve to; editing Bottle A’s capacity should not change Bottle B’s capacity. The storefront still needs to read those fields correctly.
If one bottle needs different instructions, decide whether it needs a different guide entry or information local to that product. Do not modify a shared entry just to fix a single product unless the edit is also right for every other product that uses it. Give the content owner an entry name they can recognize and a clear rule for when to reuse it.
Build a small example before filling the catalog
- Write down the owner of each field, its type and whether one or several values are allowed. Identify any existing category fields before adding custom definitions.
- Create the Care guide metaobject definition and one example entry. In Shopify admin, definitions are managed under Settings > Metafields and metaobjects; entries are managed under Content > Metaobjects [3,4].
- Add a product metafield definition of type Metaobject and select the intended definition. Choose one value or a list deliberately [4].
- Open two example products and select the same guide entry in their reference field. Add their separate capacity values, keeping the unit consistent.
- Keep a third product on a different entry or with no guide reference. Use it to check that a later shared edit has the intended scope.
Agree on required fields and validation before bulk entry. For example, a guide that cannot be understood without instructions should not depend on an editor remembering to fill an optional-looking field. The exact validation depends on the field type and your content needs; it is part of the definition, not a substitute for reviewing the writing [1,3].
Check stored data and theme display separately
Saving a value does not guarantee that customers can see it. A supported theme setting or block must connect to the relevant dynamic source, or a developer must render it with code. The setting must accept the field’s type, and the template must have the right context. A product metafield cannot simply be connected on the homepage as though a particular product were already selected [5].
Shopify’s merchant guidance also requires Storefronts access for metaobjects used by the online store [4,5]. Check that access setting before diagnosing the theme. If the data is present in admin but absent in the preview, inspect the connection, supported type and template context before duplicating the content into another field.
- ✓Both reference fields select the intended guide entry, rather than similarly named separate entries.
- ✓A controlled change to the example guide appears wherever the preview reads that shared entry; the third product behaves as intended.
- ✓Changing Bottle A’s capacity leaves Bottle B’s capacity unchanged. If the field belongs to a variant, switching variants shows the matching value.
- ✓The theme preview displays the correct guide fields, readable text and the intended image on desktop and mobile.
- ✓A missing optional reference produces an intentional empty state, without a blank heading or broken image.
Use approved test content and preserve the previous values before checking shared edits. Record the products, entry and template tested. Once the example behaves correctly, expand the model to the rest of the catalog and give someone responsibility for future changes.
- Use reliable product data in a Shopify comparison experience
- Check customizations when updating a Shopify theme
Two questions before implementation
Do I need an app to create metaobjects?
Will changing the theme delete my metaobject content?
Start with two products and one shared entry. If your team can explain which edit affects one product, which affects both, and where the theme reads each value, the content model is ready for a wider rollout.
Sources
- [1] Shopify developer documentation: Data modeling with metafields and metaobjects
- [2] Shopify Help Center: Metafields
- [3] Shopify Help Center: Metaobjects
- [4] Shopify Help Center: Referencing metaobjects
- [5] Shopify Help Center: Connecting and displaying metaobjects
- [6] Shopify Help Center: Connecting metaobjects to your online store
- [7] Shopify Help Center: Metafield content types and values
