2.0 Beta

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

What changed

subscription-swatches

Webflow tabs and radios that choose a selling plan.

v2.0 beta
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Attributes on the element
  5. Attributes inside it
  6. Loading

At a glance

A group with several plans

Tab
The group's name, from subscription-group="name".
Pane
One Radio button per plan.
Class
more-options on the tab and pane. Elements with group-condition="more-options" on or inside them show.

A group with one plan

Tab
The plan's name instead of the group's. A click on the tab chooses the plan.
Class
one-option on the tab and pane. Elements with group-condition="one-option" on or inside them show.

A product sold only by subscription

One-time tab
Removed, with its pane.
Starts on
The first plan.

No plan for the selected variant

Picker
subscription-swatches is removed, when the product or the selected variant has no plan.
Groups
A group without a plan for the selected variant is dropped.

More in the guide.

Where it can go

  • Inside smootify-product.
  • Must contain .w-tabs, .w-tab-link, .w-tab-pane.
  • Out of place, Smootify removes it from the page: also when the product has no selling plans.

What it requires

Nothing beyond Smootify: it works on every plan.

Attributes on the element

  • It reads auto-select-plan, auto-select-index, data-selected-group, data-selected-option-index.

Attributes inside it

GroupAttribute nameValues
Selling planssubscription-group1
Loadingskeleton5
Subscription choices (condition)group-condition2

Loading

Its code loads only on pages that have subscription-swatches.

    ↑ ↓ to moveEnter to openEsc to close