Zoorix Sticky bar Javascript events
Hello everyone!! 😁
Yes! The Zoorix sticky bar app triggers a set of JavaScript events during key actions such as when the sticky bar is displayed, when an item is added to the cart, and when the sticky bar is hidden. If you're a developer looking to customize the app, here are the JavaScript events you can use to enhance your customizations:
document.addEventListener("zrx-satc-loaded", function (e) {
// This code runs when the sticky bar app is loaded in the store
});
document.addEventListener("zrx-satc-item-added", function (e) {
// This code runs when an item is added using the sticky button
});
document.addEventListener("zrx-satc-shown", function (e) {
// This code runs when the sticky bar is displayed in the store
});
document.addEventListener("zrx-satc-hidden", function (e) {
// This code runs when the sticky bar is hidden in the store
});
If there's anything missing or if you need an additional event, don't hesitate to contact us at support@zoorix.com.
Happy coding! 🙌🙌
Updated on: 17/09/2024
Thank you!