2.0 Beta

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

What changed

quick-order

(HQ #59b) Every variant of a product in a table, with a quantity each (a quick order list). Its smootify-variant (without data-product-id) is the row: copied once per variant with the [variant="…"] values, data-id and the variant's state classes, is-active with a quantity. The row's quantity-input starts at 0 and takes 0 or what the Smootify purchase rules and Shopify's B2B quantity rule accept, up to the stock (a variant sold out takes none); its input keeps its own name, it is not the product form's quantity. [quick-order="add"] adds every row with a quantity in one addition, then empties the table; disabled while it is empty. data-sync ("false" turns it off): the rows show the cart's own lines of each variant (no properties, add-ons or box) and every change goes to the cart, 0 taking the line out; no add button then. A form inside takes pasted SKUs, one per line with its quantity ("TEE-S 4", any case): the rows of this product's SKUs take them; the others are the form error, data-error-not-found (default "SKU not found") followed by the SKUs. Asks Shopify for the volume pricing (§2.11). The [condition="…"] inside a row follow the row's variant (out-of-stock on a sold-out one), even inside a product page. Every plan. Keep it outside smootify-add-to-cart.

v2.0 beta
Open .md
On this page
  1. Where it can go
  2. What it requires
  3. Fields in the form
  4. Attributes on the element
  5. Attributes inside it

Where it can go

  • Anywhere on the page.
  • Must contain smootify-variant, quantity-input.
  • Out of place, it stays in the page and does nothing: without a product (data-product-id, or a smootify-product around it) it shows no row.

What it requires

Nothing beyond Smootify: it works on every plan.

Fields in the form

Each field’s Name setting in Webflow tells Smootify what the field holds. It is a setting of the field, not a custom attribute.

NameFieldWhat it does
the first field filled (a textarea)Text area, Text fieldThe pasted SKUs: one per line, the quantity after a space, tab, comma or semicolon (x before it works: “TEE-S x 4”), 1 without one; the same SKU twice adds up.

Attributes on the element

  • It reads data-product-id, data-sync, data-error-not-found.
  • Smootify writes is-empty on it: do not set them yourself.

Attributes inside it

GroupAttribute nameValues
Quick order listquick-order6

    ↑ ↓ to moveEnter to openEsc to close