Merchant guide · Blocks

Metafield collapsible

A collapsible row with content from a metafield. Only in older templates.

What it looks like

Computer
“Metafield collapsible” on a phone. (Show larger)
Phone

Marked in the picture

The numbers in the computer picture show where each setting appears.

  1. 1 = Text (if the metafield is empty)
  2. 2 = Product title (own block)
  3. 3 = Rating stars (own block)
  4. 4 = Price (own block)
  5. 5 = Set contents (bundle) (own block)

Example from the demo store Nordform.

Where do I find it?

  1. Online Store
  2. Themes
  3. Customize
  4. Choose the page at the top: “Products › Default product”
  5. Add block
  6. Metafield collapsible

How to set it up

Metafield collapsible

Shown with default values. Fields that only appear after another setting is changed are folded away below.

Heading

Default: Details

Text in double square brackets is highlighted, e.g. [[refill]].

Marker 1 Text (if the metafield is empty)

empty

Text in double square brackets is highlighted, e.g. [[refill]].

Open by default

Default: Off

Only shown when “Heading” is filled in.

Data source (change only for custom metafields)

Metafield: content
empty

Format namespace.key, e.g. custom.usage. Find it under Settings → Custom data. If it is empty, the text above is shown.

Tips

  • For new content, use “Metafield content” with “Collapsible”.

No longer in the picker

Enlarged picture