useCartLinesTotalQuantity

The useCartLinesTotalQuantity hook returns the total amount of items in the cart. It must be a descendent of a CartProvider component.

Example code

Return value

The total amount of items in the cart.