simpleCart(js)

items
Items:
Total:

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

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