When no warehouse configurated set 0 instead of seting ''
This commit is contained in:
1 parent
0d058a5d50
commit
e4800accf3
1 file changed
+1
-1
+1
-1
@@ -1685,7 +1685,7 @@ class CartCore extends ObjectModel
|
||||
{
|
||||
$product['carrier_list'] = array_merge($product['carrier_list'], Carrier::getAvailableCarrierList(new Product($product['id_product']), $id_war, $product['id_address_delivery'], null, $this));
|
||||
if (in_array((int)$id_war, $product['warehouse_list']) && $id_warehouse == 0)
|
||||
$id_warehouse = $id_war;
|
||||
$id_warehouse = (int)$id_war;
|
||||
}
|
||||
|
||||
if (!isset($grouped_by_warehouse[$product['id_address_delivery']]['in_stock'][$id_warehouse]))
|
||||
|
||||
Reference in new issue
Block a user