2.0 Beta

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

What changed

smootify-magic-box-cart

Box panel: picked items, counters, totals and the form that adds the whole box to the cart.

v2.0 betaAdd-on: Magic Box
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Fields in the form
  5. Attributes on the element
  6. Attributes inside it

At a glance

is-empty · is-disabled

Empty

Shows
empty-state instead of items-list, and box-condition="cannot-purchase".
Add button
Disabled.
is-disabled

Filling: 4 of 6

Shows
items-list and box-condition="cannot-purchase".
Add button
Disabled.
is-purchasable

Ready: 6 of 6

Shows
box-condition="can-purchase".
Add button
Enabled.
is-purchasable · is-saving

Ready, with a 10% discount

Discount
From the Magic Box entry. is-saving while it applies.
Price
data-prop="price" after the discount, data-prop="compareAtPrice" before it.

More in the guide.

Where it can go

What it requires

  • The Magic Box extension (the extension activated in the Smootify dashboard, on every plan). Without it, the element does nothing.

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
buy-now (submit button)buttonThe box goes straight to checkout (also data-buy-now).
any nameany fieldA property of the box’s first line, named as the field’s data-name; empty values are not sent.

Attributes on the element

  • It reads data-buy-now.

Attributes inside it

GroupAttribute nameValues
Magic boxdata-prop10
Magic box (condition)box-condition2

    ↑ ↓ to moveEnter to openEsc to close