Reference
Data attributes and states, events, the JavaScript API and cart updates.
New to the words we use? See Glossary.
- Data attributes and statesThe data attributes and state classes every AndOr widget shares, with links to each widget's own.
- EventsEvery event the AndOr widgets dispatch and listen for, with payload types, pixel events and listening examples.
- JavaScript APIThe four public AndOr objects on window, refresh() after Ajax swaps and the gift chooser open() call.
- Cart updatesHow AndOr upsell adds and gift removals reach the cart and redraw it on Dawn, Horizon and custom themes.
See it in action