items
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
- There are no comments for this entry yet.