If the user does not put tick the box "I have read and agree to the Terms & Conditions" then button "load..." to get stuck in and get ahead even if the tick is placed in the box.
Attachments
I have read and agree to the Terms & Conditions .png (11.91 KiB) Viewed 6105 times
I fixed this problem on my server by editing
catalog/view/theme/default/template/checkout/checkout.tpl
After line 768 I added
$('#button-payment-method').button('reset');
Everything works as expected.
catalog/view/theme/default/template/checkout/checkout.tpl
After line 768 I added
$('#button-payment-method').button('reset');
Everything works as expected.
Code: Select all
(line 755) complete: function() {
$('#button-payment-method').button('reset');
},
success: function(html) {
$('#collapse-checkout-confirm .panel-body').html(html);
$('#collapse-checkout-confirm').parent().find('.panel-heading .panel-title').html('<a href="#collapse-checkout-confirm" data-toggle="collapse" data-parent="#accordion" class="accordion-toggle"><?php echo $text_checkout_confirm; ?> <i class="fa fa-caret-down"></i></a>');
$('a[href=\'#collapse-checkout-confirm\']').trigger('click');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
(line 768) });
$('#button-payment-method').button('reset'); <- in here or somewhere else???
}
The solution which is already suggested works fine for me. (I too can confirm this bug)
Original:
Fixed:
Added:
If you look at the other similar functions above this section in the file, you will see that they all have this simialr line for the other buttons, I think they just forgot to put it in here.


Original:
Code: Select all
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#collapse-payment-method .panel-body').prepend('<div class="alert alert-warning">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');
}
} else {
Code: Select all
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
$('#button-payment-method').button('reset');
if (json['error']['warning']) {
$('#collapse-payment-method .panel-body').prepend('<div class="alert alert-warning">' + json['error']['warning'] + '<button type="button" class="close" data-dismiss="alert">×</button></div>');
}
} else {
Code: Select all
$('#button-payment-method').button('reset');

zupi238 wrote:the same problem and i cant fix it. I use 2.1.0.2! Any idea whats the problem?
In version 2.1.0.2 if you fail to tick the Term & Condition, you get this warning:
Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...
Who is online
Users browsing this forum: No registered users and 8 guests