[-] BO : carrier wizard no fees display

This commit is contained in:
Vincent Augagneur
2013-12-06 10:17:07 +01:00
parent 36a70d83d5
commit c2e0edcc7a
2 changed files with 5 additions and 5 deletions
@@ -686,17 +686,18 @@ class AdminCarrierWizardControllerCore extends AdminController
$price_list = array();
if (is_array($fees) && count($fees))
{
$price = isset($fee[$key]) ? (float)$fee[$key] : 0;
foreach ($fees as $id_zone => $fee)
{
$price_list[] = array(
'id_range_price' => ($range_type == Carrier::SHIPPING_METHOD_PRICE ? (int)$range->id : null),
'id_range_weight' => ($range_type == Carrier::SHIPPING_METHOD_WEIGHT ? (int)$range->id : null),
'id_carrier' => (int)$carrier->id,
'id_zone' => (int)$id_zone,
'price' => $price,
'price' => isset($fee[$key]) ? (float)$fee[$key] : 0,
);
}
}
if (count($price_list) && !$carrier->addDeliveryPrice($price_list, true))
return false;
}