# Product metafield

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

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

## Where it can go

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