evoShop.quantity()

returns:

  • The total number of items in the cart, or the sum of the quantities of each unique item in the cart.
  • evoShop.add({
      name: "Coffee Mug",
      price: 4,
      quantity: 1
    });
    
    
    evoShop.add({
      name: "T-Shirt",
      price: 10,
      quantity: 2
    })
    
    evoShop.quantity(); // 3