simpleCart(js)

items
Items:
Total:

'update' Event

The ‘update’ event is triggered after the cart has been updated saved.  You can use this to know when changes have been made to the cart.

simpleCart.bind( 'update' , function(){
  console.log( "Whoa, the cart total is now at " + simpleCart.toCurrency( simpleCart.grandTotal() ) + "! Nice!" ); 
});

 

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.