Metafields
Create the exact metafields read by the shared codebase and distinguish built-in keys, configurable keys, and data supplied by Shopify or an app.
Metafields
Create the exact metafields read by the shared codebase and distinguish built-in keys, configurable keys, and data supplied by Shopify or an app.
Create a product metafield and enter its value
A definition creates the field for every product. Its value is then entered separately on each relevant product.
- 01
In Shopify admin, open Settings → Metafields and metaobjects.
- 02
Under Metafield definitions, choose Products. Choose Variants only when the code explicitly expects a variant metafield.
- 03
Click Add definition.
- 04
Enter a readable name, such as “Product features”.
- 05
Under Namespace and key, enter the exact key expected by the theme. For product_features, the complete value must be custom.product_features. Do not replace custom or translate the key.
- 06
Click Select type, then choose the type documented on this page. Example: List of single-line text values for custom.product_features.
- 07
Keep the definition pinned if you want it readily available on product pages, then save.
- 08
Open Products and select the product to complete. Scroll to Metafields or Custom data.
- 09
Open the new field, enter or select its value, then save the product.
- 10
Repeat for every product that should display the information, then check a real storefront page.
Metafields to create with these exact names
These keys are read directly by the shared codebase. Another key will not be recognized unless a fallback is explicitly listed.
Glass Product Card
Single-line textDisplays the material as a badge. When empty, the theme tries custom.matiere, then custom.material. Only one primary definition is required.
Glass Product Card
List of single-line text valuesDisplays each value as a separate product feature, up to the limit selected in the section.
Cart and cart drawer
Single-line textAdds a product-specific badge such as “Limited edition” or “Made to order”.
Cart and cart drawer
Single-line textAdds a product-specific shipping note, such as a lead time or separate shipment.
Shop the Look
Product referenceConnects up to three products to the main product. The bundle template reads the same keys from the selected bundle product.
Virtual assistant
Single-line textDescribes the fit. When missing, the assistant uses the section fallback setting.
Virtual assistant
Single-line textDescribes stretch. When missing, the assistant uses the section fallback setting.
Virtual assistant
JSONProvides measurement ranges to the assistant. JSON may include label, bustMin/bustMax, waistMin/waistMax, and the other measurements expected by the guide. Size blocks are used as fallback.
Showroom Hotspots
Compatible textDisplays material in the product modal. custom.material is used when custom.materials is empty.
Showroom Hotspots
Single-line textDisplays color in the product modal when Metafields is enabled.
Showroom Hotspots
Single-line textDisplays the collection name in the product modal when Metafields is enabled.
Eloa preset — Detail Explorer
File — imageProvides the image for each of the three detail entries used by the Eloa product template.
Eloa preset — Detail Explorer
Single-line textProvides the eyebrow or category for each of the three entries.
Eloa preset — Detail Explorer
Single-line textProvides the title for each of the three entries.
Eloa preset — Detail Explorer
Rich textProvides the full description for each entry and is rendered through metafield_tag.
Data not to recreate as custom fields
reviews.rating · reviews.rating_countThe Glass Product Card and product page read these standard metafields. They should normally be populated by a compatible Shopify reviews app, not entered manually.
product.metafields.shopifyThey come from the category assigned to the product. Select the correct Shopify category and complete its attributes; do not create a custom namespace called shopify.
Metafields configured in the editor
- 01
The product page Category metafields block accepts a namespace and up to four keys, so it does not depend on a fixed custom key.
- 02
The Comparison Builder can use a metafield as a criterion. Every compared product must use the same namespace, key, and data type.
- 03
Blog Grid and Blog Discovery can rank articles using a likes counter. The article namespace and key are entered in the section settings.
Before you finish
- ✓
Content remains readable in every color scheme.
- ✓
Labels match the storefront language.
- ✓
Displayed promotions match Shopify rules.
- ✓
Interactions remain accessible by keyboard and touch.