Black Friday

40% off every plan for a year with code BF2026. Until December 2.

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. At a glance
  2. Where it can go
  3. Values

At a glance

variant-swatches

Every part, on each button

  • ✓Color and imageoption="bg-color""image"
  • ✓Nameoption="title"
  • ✓Descriptionoption="description"
  • ✓Other metaobject fieldsoption-metafield="key"
  • ✓Variant photooption-variant="image"
  • ✓Price or differencesmootify-priceoption="price-difference"
variant-dropdown

Every part, on each link of the list

  • ✓Color and imageoption="bg-color""image"
  • ✓Nameoption="title"
  • ✓Descriptionoption="description"
  • ✓Other metaobject fieldsoption-metafield="key"
  • ✓Variant photooption-variant="image"
  • ✓Price or differencesmootify-priceoption="price-difference"
variant-popover

Every part, on each link or button of the panel

  • ✓Color and imageoption="bg-color""image"
  • ✓Nameoption="title"
  • ✓Descriptionoption="description"
  • ✓Other metaobject fieldsoption-metafield="key"
  • ✓Variant photooption-variant="image"
  • ✓Price or differencesmootify-priceoption="price-difference"
variant-selector

Text only: the browser draws the list

  • –Color and image
  • ✓Namewritten by Smootify
  • –Description
  • –Other metaobject fields
  • –Variant photo
  • ✓Price or differencedata-format="{{value}} {{difference}}"

More in the guide.

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