Upsell by AMP Cart methods

The AMP cart has some methods you can use to implement custom code. The list can be found below:

Methods 

window.AMP_API.OPEN_CART()
// Open Slide cart

window.AMP_API.CLOSE_CART()
// Close Slide Cart

window.AMP_CART_LOADED = function(cart)
// Fires once the cart has loaded on the web page and returns the current cart

window.AMP_CART_OPENED = function()
// Fires whenever Slide Cart has been opened. Don’t not return the cart

window.AMP_CART_CHECKOUT_BUTTON_CLICKED = function ()
// Fires whenever checkout is clicked

window.AMP_CART_UPDATED = function (cart)
// Fires whenever slide cart has updated
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us