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

Product metafield

The values of `metafield` inside `smootify-product` or `cart-item`.

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

Where it can go

Values

Attribute and valueWhat it isNotes
metafield="key, like care_guide"Valueon text, rich, container, link, button, image, video
namespace="custom"Namespaceon any; with [metafield]
data-attr="href"Into an attributeon any; with [metafield]
separator=", or repeat"List separatorUsed as written, spaces included: a comma and a space joins with a comma and a space; on any; with [metafield]
data-digits="2"Decimal digitson any; with [metafield]
data-path="items.0.title"JSON pathon any; with [metafield]
data-path="width"JSON path, inside the elementOn elements inside a JSON [metafield]: one value each; on any; inside smootify-product [metafield], cart-item [metafield]
property="--metafield-color"Color variableon any; with [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 [metafield]

    ↑ ↓ to moveEnter to openEsc to close