diff --git a/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl b/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl index 2e0b782a4..339f45d0e 100644 --- a/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl +++ b/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl @@ -25,14 +25,11 @@ @@ -47,18 +44,18 @@
 
- {l s='It will be displayed only for the following zones:'} + {l s='This carrier will be proposed for those delivery zones:'}
 
- {l s='It will be displayed only for the following groups:'} + {l s='And it will be proposed for thise client groups:'}
{if $is_multishop}
 
- {l s='It will be displayed only for the following shops:'} + {l s='Finally, this carrier will be proposed in those shops:'}
{/if} diff --git a/js/admin_carrier_wizard.js b/js/admin_carrier_wizard.js index 25cb86bff..d8370cf7c 100644 --- a/js/admin_carrier_wizard.js +++ b/js/admin_carrier_wizard.js @@ -137,17 +137,24 @@ function displaySummary() // Weight or price ranges $('#summary_range').html(summary_translation_range); + + + if ($('input[name="shipping_method"]:checked').val() == 1) + unit = PS_WEIGHT_UNIT; + else + unit = currency_sign; + var range_inf = summary_translation_undefined; var range_sup = summary_translation_undefined; - /* -$('input[name$="range_inf[]"]').each(function(){ +/* + $('input[name$="range_inf[]"]').each(function(){ if (!isNaN(parseFloat($(this).val())) && (range_inf == summary_translation_undefined || range_inf < $(this).val())) range_inf = $(this).val(); }); */ - range_inf = $('tr.range_inf td input:first').val(); - range_sup = $('tr.range_sup td input:last').val(); + range_inf = $('tr.range_inf td input:first').val()+' '+unit; + range_sup = $('tr.range_sup td input:last').val()+' '+unit; $('input[name$="range_sup[]"]').each(function(){ if (!isNaN(parseFloat($(this).val())) && (range_sup == summary_translation_undefined || range_sup > $(this).val())) @@ -187,7 +194,7 @@ function validateSteps(step_number) var is_ok = true; if ((multistore_enable && step_number == 3) || (!multistore_enable && step_number == 2)) { - if (!validateRange(2)) + if ($('input[name="is_free"]').val() == 1 && !validateRange(2)) is_ok = false; } diff --git a/modules/blockcategories/category-tree-branch.tpl b/modules/blockcategories/category-tree-branch.tpl index d420cc3fc..63bbcb73e 100644 --- a/modules/blockcategories/category-tree-branch.tpl +++ b/modules/blockcategories/category-tree-branch.tpl @@ -24,7 +24,8 @@ *}
  • - {$node.name|escape:'htmlall':'UTF-8'} + {$node.name|escape:'htmlall':'UTF-8'} {if $node.children|@count > 0}