simpleCart(js)

items
Items:
Total:

simpleCart.Item.total()

returns:

  • total cost of the item
var myItem = simpleCart.add({ name: "Coffee Mug" , price: 10, quantity: 2 });

myItem.total(); // 20

Comments

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