diff --git a/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl
index ce31964fd..1acba9e6a 100644
--- a/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl
+++ b/admin-dev/themes/default/template/controllers/carrier_wizard/helpers/view/view.tpl
@@ -38,6 +38,7 @@
var need_to_validate = '{l s='Please validate the last range before create a new one.' js=1}';
var delete_range_confirm = '{l s='Are you sure to delete this range ?' js=1}';
var currency_sign = '{$currency_sign}';
+ var PS_WEIGHT_UNIT = '{$PS_WEIGHT_UNIT}';
diff --git a/controllers/admin/AdminCarrierWizardController.php b/controllers/admin/AdminCarrierWizardController.php
index 906ce265e..ac28f1540 100644
--- a/controllers/admin/AdminCarrierWizardController.php
+++ b/controllers/admin/AdminCarrierWizardController.php
@@ -104,6 +104,7 @@ class AdminCarrierWizardControllerCore extends AdminController
$currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
$this->tpl_view_vars = array(
'currency_sign' => $currency->sign,
+ 'PS_WEIGHT_UNIT' => Configuration::get('PS_WEIGHT_UNIT'),
'enableAllSteps' => Validate::isLoadedObject($carrier),
'wizard_steps' => $this->wizard_steps,
'validate_url' => $this->context->link->getAdminLink('AdminCarrierWizard'),
@@ -306,27 +307,7 @@ class AdminCarrierWizardControllerCore extends AdminController
array(
'type' => 'zone',
'name' => 'zones'
- )
- )
- ));
-
- $tpl_vars = array();
- $tpl_vars['PS_WEIGHT_UNIT'] = Configuration::get('PS_WEIGHT_UNIT');
- $currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
- $tpl_vars['currency_sign'] = $currency->sign;
-
- $fields_value = $this->getStepThreeFieldsValues($carrier);
-
- $this->getTplRangesVarsAndValues($carrier, $tpl_vars, $fields_value);
- return $this->renderGenericForm(array('form' => $this->fields_form), $fields_value, $tpl_vars);
- }
-
- public function renderStepFour($carrier)
- {
- $this->fields_form = array(
- 'form' => array(
- 'id_form' => 'step_carrier_conf',
- 'input' => array(
+ ),
array(
'type' => 'select',
'label' => $this->l('Out-of-range behavior:'),
@@ -346,7 +327,28 @@ class AdminCarrierWizardControllerCore extends AdminController
'name' => 'name'
),
'desc' => $this->l('Out-of-range behavior occurs when no defined range matches the customer\'s cart (e.g. when the weight of the cart is greater than the highest weight limit defined by the weight ranges)')
+ )
),
+
+ ));
+
+ $tpl_vars = array();
+ $tpl_vars['PS_WEIGHT_UNIT'] = Configuration::get('PS_WEIGHT_UNIT');
+ $currency = new Currency(Configuration::get('PS_CURRENCY_DEFAULT'));
+ $tpl_vars['currency_sign'] = $currency->sign;
+
+ $fields_value = $this->getStepThreeFieldsValues($carrier);
+
+ $this->getTplRangesVarsAndValues($carrier, $tpl_vars, $fields_value);
+ return $this->renderGenericForm(array('form' => $this->fields_form), $fields_value, $tpl_vars);
+ }
+
+ public function renderStepFour($carrier)
+ {
+ $this->fields_form = array(
+ 'form' => array(
+ 'id_form' => 'step_carrier_conf',
+ 'input' => array(
array(
'type' => 'text',
'label' => $this->l('Maximium package height ('.Configuration::get('PS_DIMENSION_UNIT').'):'),
@@ -388,6 +390,7 @@ class AdminCarrierWizardControllerCore extends AdminController
)
)
));
+
$fields_value = $this->getStepFourFieldsValues($carrier);
// Added values of object Group
diff --git a/js/admin_carrier_wizard.js b/js/admin_carrier_wizard.js
index 13f9ceffa..f5adf7ca8 100644
--- a/js/admin_carrier_wizard.js
+++ b/js/admin_carrier_wizard.js
@@ -450,11 +450,11 @@ function add_new_range()
last_sup_val = $('tr.range_sup td:last input').val();
//add new rand sup input
- $('tr.range_sup td:last').after('
*
');
+ $('tr.range_sup td:last').after('
* '+PS_WEIGHT_UNIT+' '+currency_sign+'
');
//add new rand inf input
- $('tr.range_inf td:last').after('
*
');
+ $('tr.range_inf td:last').after('
* '+PS_WEIGHT_UNIT+' '+currency_sign+'
');
- $('tr.fees_all td:last').after('
');
+ $('tr.fees_all td:last').after('
'+currency_sign+' ');
$('tr.fees').each( function () {
$(this).children('td:last').after('