evoShop.Item.increment( [amount] )

arguments:

  • amount (optional): number to increment the quantity of the item by. If nothing is provided, item is incremented by 1
  • var myItem = evoShop.add({ name: "Cool Thing" , price: 4, quantity: 1 });
    
    myItem.increment();
    
    myItem.quantity(); // 2
    
    myItem.increment( 5 );
    
    myItem.quantity(); // 7