[-] BO : Fixed #PSCFV-2714 - option when out of stock - with vAugagneur
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15910 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user