2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Selected variant

The values of `variant` inside `smootify-product` or `smootify-variant` or `box-item`.

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
variant="title"TitleThe product title inside smootify-product and box-item; the variant title inside smootify-variant
variant="sku"SKU—
variant="barcode"Barcode—
variant="stock"Stock—
variant="weight"Weight—
variant="unit-price"Unit price—
variant="discount-percentage"Discount percentage—
variant="discounted-amount"Discounted amount—
variant="option1-name"Option 1 namealso read as option1-label
variant="option1-value"Option 1 value—
variant="option2-name"Option 2 namealso read as option2-label
variant="option2-value"Option 2 value—
variant="option3-name"Option 3 namealso read as option3-label
variant="option3-value"Option 3 value—
variant="quantity-min"Minimum quantity—
variant="quantity-increment"Quantity step—
variant="quantity-max"Maximum quantity—
variant="image"Imageon image
variant="url"LinkThe product page on this variant; on link
variant="id"Variant idThe variant chosen at that moment: in an input its id as the value, sent by a form inside the product (an alert for the Walnut top); elsewhere its number; on input, text
variant="components"Bundle componentsOne copy per component of a fixed bundle; on container
variant="swatch1"Swatch of option 1Holds the swatch parts; on container; inside smootify-variant
variant="swatch2"Swatch of option 2on container; inside smootify-variant
variant="swatch3"Swatch of option 3on container; inside smootify-variant
data-type="min, min-available or max"Which varianton link; with [variant=“url”]
data-format="{{price}} / {{unit}}"Price formatwith [variant=“unit-price”]
variant="number"Number of valueson text; inside variant-swatches, variant-dropdown, variant-popover, variant-selector
remove-parent="true"Remove the parentFor Default Title, the parent goes instead; inside smootify-variant; with [variant=“option1-value”], [variant=“option2-value”], [variant=“option3-value”]

    ↑ ↓ to moveEnter to openEsc to close