Remove item when qty is a negative number + test, also added test for multiple options

This commit is contained in:
Rob Gloudemans
2014-03-01 19:52:00 +01:00
parent dac5143fb4
commit 30d789f0c0
2 changed files with 26 additions and 0 deletions

View File

@@ -427,6 +427,7 @@ class Cart {
*/
protected function updateQty($rowId, $qty)
{
if($qty <= 0)
if($qty == 0)
{
return $this->remove($rowId);