Holiday offer

30% off every plan for a year with code HOLIDAY30. Until January 6.

See the prices
2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Customer metafield

The values of `customer-metafield`.

v2.0 beta
Open .md
On this page
  1. Where it can go
  2. Values

Where it can go

  • Anywhere on the page.
  • On text, rich, container, link, a real <button>, image, video.

Values

Attribute and valueWhat it isNotes
customer-metafield="key"Customer value—
company-metafield="key"Company value—
namespace="custom"Namespaceon any; with [customer-metafield], [company-metafield]
property="--metafield-color"Color variableon any; with [customer-metafield], [company-metafield]
data-attr="href"Into an attributeon any; with [customer-metafield], [company-metafield]
separator=", "List separatorUsed as written, spaces included: a comma and a space joins with a comma and a space; on any; with [customer-metafield], [company-metafield]
data-digits="2"Decimal digitson any; with [customer-metafield], [company-metafield]
data-path="items.0.name"JSON pathon any; with [customer-metafield], [company-metafield]
data-format="table"As a tableA JSON field shaped as {“headers”:[…],“rows”:[[…]]}: on a <table> the header cell, the row and the cell are copied; with divs mark them with table=head|row|cell. Hidden when empty or not that shape; on container; with [customer-metafield], [company-metafield]

    ↑ ↓ to moveEnter to openEsc to close