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 f6ea97488..fbad12c22 100644
--- a/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl
+++ b/admin-dev/themes/default/template/controllers/carrier_wizard/summary.tpl
@@ -28,7 +28,8 @@
var summary_translation_meta_informations = '{l s='This carrier is @s1 and the delivery announced is: @s2.' js=1}';
var summary_translation_free = '{l s='free' js=1}';
var summary_translation_paid = '{l s='not free' js=1}';
- var summary_translation_range = '{l s='This carrier can deliver orders from @s1 to @s2. If the order is out of range, the behavior is to @s3.' js=1}';
+ var summary_translation_range = '{l s='This carrier can deliver orders from @s1 to @s2.' js=1}';
+ var summary_translation_range_limit = '{l s='If the order is out of range, the behavior is to @s3.' js=1}';
var summary_translation_shipping_cost = '{l s='The shipping cost is calculated @s1 and the tax rule @s2 will be applied.' js=1}';
var summary_translation_price = '{l s='according to the price' js=1}';
var summary_translation_weight = '{l s='according to the weight' js=1}';
diff --git a/js/admin_carrier_wizard.js b/js/admin_carrier_wizard.js
index c2c813ccb..75cdf3f28 100644
--- a/js/admin_carrier_wizard.js
+++ b/js/admin_carrier_wizard.js
@@ -127,16 +127,20 @@ function displaySummary()
// Tax and calculation mode for the shipping cost
tmp = summary_translation_shipping_cost.replace('@s2', '' + $('#id_tax_rules_group option:selected').text() + '');
- if ($('#billing_price').attr('checked'))
- tmp = tmp.replace('@s1', summary_translation_price);
- else if ($('#billing_weight').attr('checked'))
- tmp = tmp.replace('@s1', summary_translation_weight);
- else
- tmp = tmp.replace('@s1', '' + summary_translation_undefined + '');
+
+ if ($('#billing_price').attr('checked'))
+ tmp = tmp.replace('@s1', summary_translation_price);
+ else if ($('#billing_weight').attr('checked'))
+ tmp = tmp.replace('@s1', summary_translation_weight);
+ else
+ tmp = tmp.replace('@s1', '' + summary_translation_undefined + '');
+
+
+
$('#summary_shipping_cost').html(tmp);
// Weight or price ranges
- $('#summary_range').html(summary_translation_range);
+ $('#summary_range').html(summary_translation_range+' '+summary_translation_range_limit);
if ($('input[name="shipping_method"]:checked').val() == 1)
@@ -164,7 +168,8 @@ function displaySummary()
.replace('@s2', '' + range_sup +' '+ unit + '')
.replace('@s3', '' + $('#range_behavior option:selected').text().toLowerCase() + '')
);
-
+ if ($('#is_free_on').attr('checked'))
+ $('span.is_free').hide();
// Delivery zones
$('#summary_zones').html('');
$('.input_zone').each(function(){
@@ -192,7 +197,7 @@ function validateSteps(step_number)
var is_ok = true;
if ((multistore_enable && step_number == 3) || (!multistore_enable && step_number == 2))
{
- if ($('input[name="is_free"]').val() == 1 && !validateRange(2))
+ if (!$('#is_free_on').attr('checked') && !validateRange(2))
is_ok = false;
}
@@ -381,11 +386,10 @@ function showFees()
if ($(this).index() >= 2)
{
//enable only if zone is active
- /*
tr = $(this).parent('tr');
validate = $('tr.fees_all td:eq('+$(this).index()+')').hasClass('validated');
if ($(tr).index() > 2 && $(tr).find('td:eq(1) input').attr('checked') && validate || !$(tr).hasClass('range_sup') || !$(tr).hasClass('range_inf'))
- $(this).find('input:text').val('').removeAttr('disabled'); */
+ $(this).find('input:text').removeAttr('disabled');
$(this).find('input:text, button').css('background-color', '').css('border-color', '');
$(this).find('button').css('background-color', '').css('border-color', '').removeAttr('disabled');