simpleCart(js)

items
Items:
Total:

simpleCart.total()

returns:

  • total price of items in the cart, before tax and shipping
simpleCart.add({
  name: "Cool T-Shirt",
  price: 5,
  quantity: 2
});

simpleCart.total(); // 10.00

 

Comments

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