Detect duplicate items in the cart and increment quantities