andraskende/cakephp-shopping-cart — pull request #7 by caboone (2013-01-25 03:51:30+00:00)
Title: Update app/Controller/Component/CartComponent.php

I had an issue, where if a user go back to the products page and decided to add another item to the cart and that item was already in the cart, that item would simply get replaced with the new entry. I wanted to actually add to the quantity of this product ID if it is already in the cart. Maybe there is an easier way, but this way works for me and it is the only idea I have at this time.

Now when an item already in the cart gets added again, by the user pushing the Add To Cart button, the quantity for this specific item gets incremented.... until 99, if the user so decides.