Hi,
On Step 5: Payment Method , If I press Continue button without Terms & Conditions box checked button keep disabled and loading and have to refresh whole checkout process.
Have someone same problem or know solution?
Thanks in advance
OPENCART 2.1.0.1 VERSION
On Step 5: Payment Method , If I press Continue button without Terms & Conditions box checked button keep disabled and loading and have to refresh whole checkout process.
Have someone same problem or know solution?
Thanks in advance
OPENCART 2.1.0.1 VERSION
Think I've found a solution
catalog/view/theme/default/template/checkout/checkout.tpl
Remove:
catalog/view/theme/default/template/checkout/checkout.tpl
Remove:
Code: Select all
$('#button-payment-method').button('loading');
Last edited by straightlight on Thu Aug 11, 2016 7:20 pm, edited 1 time in total.
Reason: Added code tags.
Reason: Added code tags.
The loading state is displayed during an ajax call and I suggest to keep it. The issue here is that the button is not reset when there is an error. To fix this you have to add the following line in the error handling of checkout.tpl :
Modified code looks like this:
Code: Select all
$('#button-payment-method').button('reset');
Code: Select all
$(document).delegate('#button-payment-method', 'click', function() {
$.ajax({
url: 'index.php?route=checkout/payment_method/save',
type: 'post',
data: $('#collapse-payment-method input[type=\'radio\']:checked, #collapse-payment-method input[type=\'checkbox\']:checked, #collapse-payment-method textarea'),
dataType: 'json',
beforeSend: function() {
$('#button-payment-method').button('loading');
},
success: function(json) {
$('.alert, .text-danger').remove();
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
$('#button-payment-method').button('reset');
Who is online
Users browsing this forum: patterson123, paulfeakins, Semrush [Bot], SohBH and 18 guests