addon-dropdown
Webflow dropdown listing the nested product's variants as add-ons.
At a glance
addon-checkbox
A Webflow Checkbox
- Adds
- The add-on's current variant, while checked.
- Label
- Stays as you write it.
- No add-on
- The box unchecked.
addon-select
A Select field
- Adds
- The variant chosen in the select.
- Options
- Smootify writes one per variant.
- No add-on
- An option you add without a value, such as "No thanks".
addon-dropdown
A Webflow Dropdown
- Adds
- The variant chosen in the dropdown.
- Template
- The first Dropdown link.
show-priceadds the price after each name. - No add-on
- With
allow-unselect, a "None" entry comes first. Without it, the first variant is chosen from the start.
addon-popover
An element with a popover
- Adds
- The variant chosen in the popover.
- Template
- The first link or button in the popover.
show-priceas in the dropdown. - No add-on
- With
allow-unselect, a "None" entry comes first. Without it, the first variant is chosen from the start.
addon-swatches
Custom elements with the tag button
- Adds
- The value or variant of the chosen button. It gets
is-active. - Template
- The first button: one per value with one option, one per variant with more.
- No add-on
- A click on the chosen button.
allow-unselect="false"prevents it and chooses the first value.
More in the guide.
Where it can go
- Inside
smootify-add-to-cart smootify-product. A selector with a space is a chain:a bisbinsidea. - Not inside
.w-condition-invisible: a Webflow condition that hides the element takes it out. - Must contain
.w-dropdown,.w-dropdown-link. - 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
addon-type,show-price,allow-unselect,id.
Loading
Its code loads only on pages that have addon-dropdown.