simpleCart(js)

items
Items:
Total:

simpleCat.Item.price( [price] )

arguments:

  • price (optional): set the price of the item to this number

returns:

  • if no argument is present, the price of the item is returned

 


var myItem = simpleCart.add({ name: "T-shirt" , price: 5 });

myItem.price(); // 5

myItem.price( 10 ); 

myItem.price(); // 10

Comments

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