[-] BO : carrier wizard no fees display
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ $(document).ready(function() {
|
||||
if (parseInt($('input[name="is_free"]:checked').val()))
|
||||
is_freeClick($('input[name="is_free"]:checked'));
|
||||
displayRangeType();
|
||||
checkAllZones();
|
||||
});
|
||||
|
||||
function initCarrierWizard()
|
||||
@@ -673,7 +672,7 @@ function checkAllZones(elt)
|
||||
else
|
||||
{
|
||||
$('.input_zone').removeAttr('checked');
|
||||
$('.fees div.input-group input:text, .fees_all div.input-group input:text').attr('disabled', 'disabled').val('');
|
||||
$('.fees div.input-group input:text, .fees_all div.input-group input:text').attr('disabled', 'disabled');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user