mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-19 05:45:20 +00:00
Remove item when qty is a negative number + test, also added test for multiple options
This commit is contained in:
@@ -427,6 +427,7 @@ class Cart {
|
||||
*/
|
||||
protected function updateQty($rowId, $qty)
|
||||
{
|
||||
if($qty <= 0)
|
||||
if($qty == 0)
|
||||
{
|
||||
return $this->remove($rowId);
|
||||
|
||||
Reference in New Issue
Block a user