When i create a shopping cart with CI Cart Class, it add the product to the cart first 1 and then when i add that product to the cart next time it is also add 1 product not 2.
I want to do it the quantity in the cart is increased when someone adds an item to their cart and that exact same item is already in the cart.
It would be helpful if you could post some code or what data you are sending to the cart class but this should point you in the right direction:
and in the cart_model you would have update and add functions that look something like this