simpleCart(js)

items
Items:
Total:

simpleCart.ready( callback );

arguments:

  • callback: function to be called when simpleCart had initialized

Log the total of the cart when simpleCart has initialized

simpleCart.ready(function(){
  console.log( "Cart total: " + simpleCart.total() );
});

Comments

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