2.0 Beta

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

What changed

smootify-variant

Repeats its block once per variant of a product.

v2.0 beta
Open .md
On this page
  1. Where it can go
  2. What it requires
  3. Attributes on the element
  4. Attributes inside it
  5. State classes
  6. Loading

Where it can go

  • Anywhere on the page.
  • Out of place, it stays in the page and does nothing: without data-product-id, or with data-product-id=“wishlist” (the wishlist page’s variant template, drawn by the Wishlist extension); missing product: removed, dev mode shows a banner.

What it requires

Nothing beyond Smootify: it works on every plan.

Attributes on the element

  • It reads data-product-id, unique-by.
  • Smootify writes data-id, data-stock on it: do not set them yourself.

Attributes inside it

GroupAttribute nameValues
Productproduct30
Selected variantvariant28
Variant swatchswatch4
Image sizemax-width4
Loadingskeleton5
Variant metafieldvariant-metafield4
Product (condition)condition22
Variant metafield (condition)if-variant-metafield4

State classes

Smootify toggles loaded, is-on-sale, is-available, is-not-available, last-in-stock, low-stock, not-existing-variant on it: style them in Webflow for each state. See State classes.

Loading

Its code loads only on pages that have smootify-variant.

    ↑ ↓ to moveEnter to openEsc to close