items
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
- There are no comments for this entry yet.