simpleCart(js)

items
Items:
Total:

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

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.