If we Cart::insert($A) we see from Cart::contents(true) that we have a quantity of 5.
However, using this same cart - if we Cart::insert($B) then examine the contents we see that we have a quantity of 11 until the script ends. At this point the quantity is once again 5 and the new information is not stored.
If this information were stored (not sure if intentional) then item updates would be much simpler in many cases.
Using session, let's say we have:
If we
Cart::insert($A)
we see fromCart::contents(true)
that we have a quantity of 5.However, using this same cart - if we
Cart::insert($B)
then examine the contents we see that we have a quantity of 11 until the script ends. At this point the quantity is once again 5 and the new information is not stored.If this information were stored (not sure if intentional) then item updates would be much simpler in many cases.