// Fixed warehouse shops list
This commit is contained in:
1 parent
538518b26d
commit
6982e0c6f2
1 file changed
+2
@@ -1362,6 +1362,8 @@ class CartCore extends ObjectModel
|
|||||||
if ($stock_management_active && (int)$product['advanced_stock_management'] == 1)
|
if ($stock_management_active && (int)$product['advanced_stock_management'] == 1)
|
||||||
{
|
{
|
||||||
$warehouse_list = Warehouse::getProductWarehouseList($product['id_product'], $product['id_product_attribute'], $this->id_shop);
|
$warehouse_list = Warehouse::getProductWarehouseList($product['id_product'], $product['id_product_attribute'], $this->id_shop);
|
||||||
|
if (count($warehouse_list) == 0)
|
||||||
|
$warehouse_list = Warehouse::getProductWarehouseList($product['id_product'], $product['id_product_attribute']);
|
||||||
// Does the product is in stock ?
|
// Does the product is in stock ?
|
||||||
// If yes, get only warehouse where the product is in stock
|
// If yes, get only warehouse where the product is in stock
|
||||||
$warehouse_in_stock = array();
|
$warehouse_in_stock = array();
|
||||||
|
|||||||
Reference in new issue
Block a user