addon-swatches
One button per value or variant of the nested product as add-ons.
Where it can go
- Inside
smootify-add-to-cart smootify-product. A selector with a space is a chain:a bisbinsidea. - Not inside an element with
hiddenat boot: it does not mount. - Must contain
button:not([popovertarget]). - Out of place, Smootify removes it from the page.
What it requires
Nothing beyond Smootify: it works on every plan.
Attributes on the element
- It reads
quantity,allow-unselect,id. - It reads
single-addon-swatchonsmootify-add-to-cart.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Option buttons | option | 14 |
| Option metafield | option-metafield | 3 |
Loading
Its code loads only on pages that have addon-swatches.