apply treatment for append and newness when adding item to cart

This commit is contained in:
Manuel Raynaud
2013-08-07 16:46:25 +02:00
parent 80496641c6
commit 02faa94cb4
2 changed files with 57 additions and 16 deletions

View File

@@ -26,6 +26,11 @@ class CartItem extends BaseCartItem
}
}
public function addQuantity($value)
{
$this->setQuantity($this->getQuantity() + $value);
return $this;
}
}