Product metafield
The values of `metafield` inside `smootify-product` or `cart-item`.
On this page
At a glance
1 Settings › Custom data › Products › Add definition
MaterialProduct metafield definition
NameMaterial
Namespace and key
custom.materialTypeSingle line text
Storefronts access
Without Storefronts access, the value never reaches the page.
2 Products › Linen shirt › Metafields
Metafields
Material
custom.materialLinenRating
reviews.rating4.5 out of 5The rating is written by a review app, in its own namespace: reviews.
3 In Webflow, inside smootify-product
metafield="material"Material: Linen
metafield="rating" namespace="reviews"★★★★★★★★★★ 4.5
Smootify reads custom unless the element has namespace.
More in the guide.
Where it can go
- Inside any of:
smootify-product,cart-item.
Values
| Attribute and value | What it is | Notes |
|---|---|---|
metafield="key, like care_guide" | Value | on text, rich, container, link, button, image, video |
namespace="custom" | Namespace | on any; with [metafield] |
data-attr="href" | Into an attribute | on any; with [metafield] |
separator=", or repeat" | List separator | Used as written, spaces included: a comma and a space joins with a comma and a space; on any; with [metafield] |
data-digits="2" | Decimal digits | on any; with [metafield] |
data-path="items.0.title" | JSON path | on any; with [metafield] |
data-path="width" | JSON path, inside the element | On elements inside a JSON [metafield]: one value each; on any; inside smootify-product [metafield], cart-item [metafield] |
property="--metafield-color" | Color variable | on any; with [metafield] |