JS Events
Listen to any action made on Smootify elements
Global Events
Below all usefull events that you can listen up on the document element
API Loaded
This event get's dispatched on the document
after all Smootify modules have been loaded.
User Auth Change
This event get's dispatched on the document
on login status change and on page load to notify if an user is effectively logged in or not
Cart Updated
This event get's dispatched on the document
on any cart changes (also on the cart first load)
Added to Cart
This event get's dispatched on the document
on any add to cart event
Removed from Cart
This event get's dispatched on the document
on any product removed from the cart
Product Loaded
This event get's dispatched on the document for each Product Loaded from the API
Addon State Changed
This event get's dispatched on the document if you have an add to cart with Magic Addons every time an add-on get's added or removed
Product Wrapper Events
Below you can instead find all the events that are dispatched only on the Smootify Product DOM Element
Variant Change
This event get's dispatched each time a new Variant has been selected
Plan Change
This event get's dispatched each time the Variant plan changed