items
simpleCart.Item.quantity( [amount] );
arguments:
- amount (optional): set the quantity of the item to this number
returns:
- if no argument is present, the quantity of the item is returned
var myItem = simpleCart.add({ name: "Cool Thing" , price: 4, quantity: 1 }); myItem.quantity( 10 ); myItem.quantity(); // 10
Comments
- There are no comments for this entry yet.