From 5cbe6f8766fbcb4ef63ab6cf6600603851ff5bdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoma=20Bigue=CC=80res?= Date: Thu, 20 Nov 2014 18:24:54 +0100 Subject: [PATCH] [*] MO - powatag : minimal quantity --- api/v1/classes/PowaTagOrders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/classes/PowaTagOrders.php b/api/v1/classes/PowaTagOrders.php index 88da73c..37a1d11 100644 --- a/api/v1/classes/PowaTagOrders.php +++ b/api/v1/classes/PowaTagOrders.php @@ -412,7 +412,7 @@ private function addProductsToCart($cart, $codeCountry) return false; } - if($p->quantity < $product->minimal_quantity || ($combination && $combination->minimal_quantity > $product->minimal_quantity)) + if($p->quantity < $product->minimal_quantity || ($combination && $combination->minimal_quantity > $p->quantity)) { $this->addError(sprintf($this->module->l('Quantity < minimal quantity for product')), PowaTagAbstract::$NOT_IN_STOCK);