Metafield content
Shows a product metafield as text, list or table, e.g. care instructions.
What it looks like
(Show larger)Marked in the picture
The numbers in the computer picture show where each setting appears.
Example from the demo store OSTRA.
Where do I find it?
- Online Store
- Themes
- Customize
- Choose the page at the top: “Products › Default product”
- Add block
- Product: content
- Metafield content
This block shows data of the current product and only works on product pages. For a product on other pages, use Featured product.
How to set it up
Metafield content
Shown with default values. Fields that only appear after another setting is changed are folded away below.
Heading
Text in double square brackets is highlighted, e.g. [[refill]].
Metafield
Format namespace.key, e.g. custom.care (Settings → Custom data). If empty, the text below is shown.
Marker 1 Text (if the metafield is empty)
Text in double square brackets is highlighted, e.g. [[refill]].
Appearance
Collapsible
Only with a heading.
More fields when “Metafield” is filled in (1)
Display
4 options
- Automatic
- Text
- List
- Table
List: list metafield or one line per entry. Table: one “Label: value” line per entry or a JSON metafield.
Tips
- Metafield format: namespace.key, e.g. custom.care.
- If the metafield is empty, the text from the block appears.
- “Collapsible” only works with a heading.
