[-] BO : Fixed #PSCFV-2714 - option when out of stock - with vAugagneur

This commit is contained in:
mMarinetti
2012-06-07 09:44:55 +00:00
parent def00f3661
commit 8b3e0fa8fb
@@ -40,10 +40,7 @@ function set_stock_available()
if (count($attributes) == 0)
$quantity = (int)$row['quantity'];
if ($quantity == 0)
continue;
//Add stock available for product
//Add stock available for product;
$res &= Db::getInstance()->execute('
INSERT INTO `'._DB_PREFIX_.'stock_available`
(`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`)