use-shopping-cart

API

API

cartDetails

Cart details is an object with skus of the items in the cart as keys and details of the items as the value, for example:

{}

As you add more items to the cartItem array, cart details will update with quantity and total amount of that particular item.


cartCount

Total number of items in the cart


totalPrice

Total price of all products in cart

0

0

$0.00

Edit this page on GitHub