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

Option buttons

The values of `option` inside `variant-swatches` or `variant-dropdown` or `variant-popover` or `addon-swatches` or `smootify-product [product="option-values"]`.

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
option="title"Valueon text
option="image"Imageon image
option="color"Text in its coloron text
option="bg-color"Background in its coloron container, text, button, link
option="description"Descriptionon text
option="price-difference"Price differenceHidden on the cheapest value; not in add-ons; on text; inside variant-swatches, variant-dropdown, variant-popover
option="title"Choice labelIn a dynamic property’s swatch button: the choice’s label; on text; inside dynamic-property
option="image"Choice imageon image; inside dynamic-property
option="option1"Add-on option 1on text; inside addon-swatches
option="option2"Add-on option 2on text; inside addon-swatches
option="option3"Add-on option 3on text; inside addon-swatches
option-variant="image"Variant imageThe variant the button stands for; on image; inside variant-swatches, variant-dropdown, variant-popover, addon-swatches
data-format="+ {{price}}"Price formaton text; inside variant-swatches, variant-dropdown, variant-popover; with [option=“price-difference”]
data-format="{{value}} {{difference}}"Option text formatOn the <select>: {{value}} is the value, {{difference}} what it costs more (empty on the cheapest); on input; inside variant-selector

    ↑ ↓ to moveEnter to openEsc to close