title: Limit quantity of items that can be added to cart - simpleCart
body: <p>Trying to limit the total quantity of items allowed to be added to 4, this function alerts first time but still adds items to the cart.</p>
  
  <pre><code>simpleCart.bind( 'beforeAdd' , function( item ){
  
          if(simpleCart.quantity() === 4 ){
  
               alert("You can only compare 4 items."); 
               return false;
  
          }
  
     });
  </code></pre>