evoShop.ready( callback );

arguments:

  • callback: function to be called when evoShop had initialized
  • Log the total of the cart when evoShop has initialized

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