2.0 Beta

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

What changed

wishlist-toggle

Adds or removes the product, or its current variant (data-use-variants), from the wishlist; inside a card of the wishlist page it works on the entry the card shows, product or variant.

v2.0 betaAdd-on: Wishlist
Open .md
On this page
  1. At a glance
  2. Where it can go
  3. What it requires
  4. Attributes on the element
  5. Loading

At a glance

A product not saved

Toggle
No class.
Rive
On removal, plays the animation in data-animation-off, or off.

A product saved

Toggle
Gets is-in-wishlist. A button inside gets is-active, and screen readers hear it as pressed.
Rive
Plays the animation in data-animation-on, or on.

More in the guide.

Where it can go

What it requires

  • The Wishlist extension (lite or server plan, or the extension activated in the Smootify dashboard). Without it, the element does nothing.

Attributes on the element

  • It reads data-use-variants, data-animation-on, data-animation-off.

Loading

Its code loads only on pages that have wishlist-toggle.

    ↑ ↓ to moveEnter to openEsc to close