smootify-magic-box-cart
Box panel: picked items, counters, totals and the form that adds the whole box to the cart.
Where it can go
- Inside
smootify-magic-box. - Must contain
form,box-item. - Out of place, Smootify removes it from the page.
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 attribute tells Smootify what the field holds.
| Name | Field | What it does |
|---|---|---|
buy-now (submit button) | button | The box goes straight to checkout (also data-buy-now). |
| any name | any field | A 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
| Group | Attribute name | Values |
|---|---|---|
| Magic box | data-prop | 10 |
| Magic box (condition) | box-condition | 2 |