updated the quantity array to zero when the cart is cleared