# Product metafield

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

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/attributes/product-metafield  
Updated: 2026-10-13

## At a glance

In the Shopify admin: 1. Settings › Custom data › Products: a definition named Material, namespace and key custom.material, type Single line text, Storefronts access on. 2. On a product, its Metafields card holds the value: Material = Linen; a review app writes Rating in its own namespace, reviews.rating = 4.5 out of 5. 3. In Webflow, inside smootify-product: `metafield="material"` shows Linen; `metafield="rating" namespace="reviews"` shows 4.5 and sets `--metafield-rating` to 90%.

More in [the guide](https://www.smootify.io/docs/build/metafields).

## Where it can go

- **Inside any of:** [`smootify-product`](https://www.smootify.io/docs/reference/elements/smootify-product), [`cart-item`](https://www.smootify.io/docs/reference/elements/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] |
