Terms & Conditions stuck
Posted: Sun Nov 15, 2015 7:44 pm
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.
OpenCart Community Forum - Discuss shopping cart and e-commerce solutions.
https://forum.opencart.com/
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???
}
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?