items
simpleCart.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 = simpleCart.add({ name: "Cool Thing" , price: 4, quantity: 1 }); myItem.increment(); myItem.quantity(); // 2 myItem.increment( 5 ); myItem.quantity(); // 7
Comments
- There are no comments for this entry yet.