2.0 Beta

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

What changed

Product and variants

The product scope and what shows its price, stock and pickup availability.

v2.0 beta
Open .md
ElementWhat it does
model-viewer (template)3D viewer Smootify creates for each 3D model of a product.
quantity-inputNumber input with plus and minus buttons for a quantity. In a product, min, step and max come from the variant’s quantity rules: Shopify’s (B2B catalogs) together with the Smootify purchase rules (2.0, HQ #68), max from the stock without a rule maximum; a quantity the rules refuse moves to the nearest they take.
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.
smootify-add-to-cartProduct form that turns the selection into cart lines.
smootify-bannerLicence or development badge that Smootify appends to the body.
smootify-error-bannerAdvice box Smootify appends over an element on testing domains.
smootify-priceWrites the price, compare-at price and total of its scope into its children. Inside subscription-swatches it shows its own option’s price whatever plan is chosen: in a plan’s radio that plan, in the one-time tab or radio the price without a plan, and (2.0) in a group’s tab link its first plan.
smootify-productLoads a Shopify product into a scope and binds its descendants.
smootify-shop-payShows Shopify’s Shop Pay button for the current variant or the cart lines. The button fills the element whatever the display of its class (2.0): the element’s width sizes the button.
smootify-variantRepeats its block once per variant of a product.
store-availabilityShows pickup availability of the current variant, with an optional list of locations.
store-location (template)Template of one pickup location row, cloned per location.

    ↑ ↓ to moveEnter to openEsc to close