evoShop.Item.quantity( [amount] );

arguments:

  • amount (optional): set the quantity of the item to this numbe
  • returns:

  • if no argument is present, the quantity of the item is returned
  • var myItem = evoShop.add({ name: "Cool Thing" , price: 4, quantity: 1 });
    
    myItem.quantity( 10 );
    
    myItem.quantity(); // 10