Welcome to the Sticky Cart & Slide Cart help center! We are here to answer your questions. If you can't find what you are looking for, please email our support team at [email protected]

Events
We have events for developers.

window.HS_SLIDE_CART_LOADED = function(cart) {
  // It is executed once the cart has been loaded.
}
window.HS_SLIDE_CART_UPDATED = function(cart) {
  // Runs every time the slider cart is updated.
}
window.HS_SLIDE_CART_ADD_TO_CART = function({ id, quantity }) {
  // Runs every time an item is added to the cart
}
window.HS_SLIDE_CART_OPENED = function() {
   // Runs every time the sliding carriage drawer is opened.
}
window.HS_SLIDE_CART_CLOSED = function() {
  // Runs every time Slide Cart has been closed.
}
window.HS_SLIDE_CART_REMOVED_FROM_CART = function({ id }) {
  // Runs every time an item is removed from the cart.
}
window.HS_SLIDE_CART_CHECKOUT_CLICKED = function(){
 // Runs every time checkout is clicked.
}
window.HS_SLIDE_CART_CHECKOUT_STOP= function() {
  // It runs every time checkout is clicked and stops the redirect to the checkout page.
}
window.HS_SLIDE_CART_UPSELL_ADD = function(id) {
  // Runs every time an additional sale item is added to the cart.
}

// Open Slide Cart Drawer
window.HS_SLIDE_CART_OPEN()
// Close Slide Cart Drawer
window.HS_SLIDE_CART_CLOSE()
// Update Slide Cart Drawer (refetches cart object)
window.HS_SLIDE_CART_UPDATE(callback)
// Manually update the cart object of the Slide Cart Drawer
window.HS_SLIDE_CART_SET_CART(cart)
// Manually apply a coupon code
window.HS_SLIDE_CART_APPLY_DISCOUNT(coupon_code)
//Discard manually coupon code
window.HS_SLIDE_CART_DISCARD_DISCOUNT()