Option metafield
The values of `option-metafield` inside `variant-swatches` or `variant-dropdown` or `variant-popover` or `addon-swatches` or `smootify-product [product="option-values"]`.
On this page
At a glance
1 Settings › Custom data › Metaobjects
OptionMetaobject definition
Fields
Name
nameSingle line textColor
colorColorImage
imageFileDescription
descriptionMulti-line textStorefronts access
2 Content › Metaobjects › Option
Entries3
OakSolid oak, oiled#C8A26A
WalnutAmerican walnut#6B4A32
WhiteLacquered white#F2F0EA
name = the option value, written exactly as in the product: Oak
3 Products › Oak table › Metafields
Metafields
Options
custom.optionsOakWalnutWhiteType: Metaobject (Option), list of entries · Storefronts access on
On your pageOak Solid oak, oiled
More in the guide.
Where it can go
- Inside any of:
variant-swatches,variant-dropdown,variant-popover,addon-swatches,smootify-product [product="option-values"].
Values
| Attribute and value | What it is | Notes |
|---|---|---|
option-metafield="field of the option" | Value | on text, image, container |
namespace="custom" | Namespace | on any; with [option-metafield] |
property="--metafield-color" | Color variable | on any; with [option-metafield] |