[Fix] Session quantity fix

Row exists in session, sum up the session quantity and the new quantity given to the add method.
This commit is contained in:
Rakhal Imming
2016-05-19 14:06:07 +02:00
parent 72174b6974
commit 9c35432fd2

View File

@@ -99,7 +99,7 @@ class Cart
$content = $this->getContent(); $content = $this->getContent();
if ($content->has($cartItem->rowId)) { if ($content->has($cartItem->rowId)) {
$cartItem->qty++; $cartItem->qty += $content->get($cartItem->rowId)->qty;
} }
$content->put($cartItem->rowId, $cartItem); $content->put($cartItem->rowId, $cartItem);