[-] BO : Fixed #PSCFV-2714 - option when out of stock - with vAugagneur
This commit is contained in:
1 parent
def00f3661
commit
8b3e0fa8fb
1 file changed
+1
-4
@@ -40,10 +40,7 @@ function set_stock_available()
|
|||||||
if (count($attributes) == 0)
|
if (count($attributes) == 0)
|
||||||
$quantity = (int)$row['quantity'];
|
$quantity = (int)$row['quantity'];
|
||||||
|
|
||||||
if ($quantity == 0)
|
//Add stock available for product;
|
||||||
continue;
|
|
||||||
|
|
||||||
//Add stock available for product
|
|
||||||
$res &= Db::getInstance()->execute('
|
$res &= Db::getInstance()->execute('
|
||||||
INSERT INTO `'._DB_PREFIX_.'stock_available`
|
INSERT INTO `'._DB_PREFIX_.'stock_available`
|
||||||
(`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`)
|
(`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`)
|
||||||
|
|||||||
Reference in new issue
Block a user