2.0 Beta

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

What changed

smootify-product

Loads a Shopify product into a scope and binds its descendants.

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, Smootify removes it from the page: invalid slug source or no ids.

What it requires

Nothing beyond Smootify: it works on every plan.

Attributes on the element

  • It reads data-id, data-parent-id, limit, data-query, data-sort, data-collection-handle, data-repeat, hide-if-product-in-cart, data-new-days, skeleton.
  • Smootify writes data-id, data-stock on it: do not set them yourself.

Attributes inside it

GroupAttribute nameValues
Productproduct33
Gallery partsgallery4
Selected variantvariant31
Volume pricing rowprice-break7
Option buttonsoption14
Each valueoption5
Image sizemax-width4
Loadingskeleton5
Form values in the pageform-value7
Product metafieldmetafield8
Variant metafieldvariant-metafield4
Option metafieldoption-metafield3
Quantities of a metaobject’s productsmetaobject-quantity3
Product (condition)condition23
Product tags (condition)tagged4
Product metafield (condition)if-metafield4
Variant metafield (condition)if-variant-metafield4

State classes

Smootify toggles loaded, price-varies, is-variable, has-subscription, is-on-sale, is-free, is-available, is-not-available, not-existing-variant, is-currently-out-of-stock, many-in-stock, last-in-stock, low-stock, low-not-last-stock, is-new, has-price-breaks on it: style them in the site’s CSS for each state. See State classes.

Loading

Defined at boot on every page.

    ↑ ↓ to moveEnter to openEsc to close