What this means
A metafield is an extra piece of information attached to something in your store. A product can have “Care instructions”; a customer can have “Preferred contact time”.
A definition sets the field's name and kind of answer, such as text, a colour, a date or a product. A value is the answer saved on one particular item.
A metaobject keeps several related fields together as a reusable record. Its definition describes the fields. Its entries are the actual records you create and reuse.
Simple example
For a Jaipur clothing shop:
| What you create | What it means |
|---|---|
| Product metafield: Care instructions | Each kurta can have its own care text. |
| Care value: Hand wash separately | The answer saved on one kurta. |
| Metaobject definition: Care guide, with Name and Instructions | A reusable kind of care guide. |
| Metaobject entry: Cotton care, with its washing instructions | One guide that several products can reference. |
| Product option: Size, with Small and Medium | Choices that create separately sellable variants. |
| Variant metafield: Tailoring note | Extra information about one saved variant, such as Medium / Blue. |
Use a normal metafield when you only need one extra answer. Use a metaobject when the information has several parts or should be shared between items.
What you need to know
Set up custom data in this order:
- Create a definition to choose what information can be saved.
- Fill metafield values or add metaobject entries.
- Optional: Connect a supported theme setting if shoppers should see the information.
- Open Settings → Custom data to manage definitions and reusable entries.
- Definitions belong to a particular kind of item. A Collections metafield appears on collections, not on products or customers. The supported choices also include products, variants, orders, draft orders, locations, pages, blogs, blog posts and the store.
- A metafield section appears on a supported item's page when relevant definitions exist. Open that item and use its metafield controls to edit its values.
- A product option and a variant metafield do different jobs. The cylinder icon beside an option name connects its choices; it does not list every variant metafield.
- Creating information does not automatically display it on your website. Connect it to a supported theme setting and allow storefront access when shoppers should see it.
- A shared entry is a reference, not a separate copy on every product. Review its uses before changing or archiving it.