Post by aznnoh » Sat Nov 28, 2015 5:01 am

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

Newbie

Posts

Joined
Sat Nov 28, 2015 4:58 am

Post by famousbridal » Fri Dec 04, 2015 12:59 pm

same issue here .... pls help

Newbie

Posts

Joined
Fri Dec 04, 2015 12:58 pm

Post by beervampir » Fri Dec 18, 2015 3:27 pm

I have the same problem.

Any solutions?

Newbie

Posts

Joined
Fri Dec 18, 2015 3:24 pm

Post by phillipsmw » Sun Jan 17, 2016 10:18 pm

Think I've found a solution

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.

Newbie

Posts

Joined
Wed Jan 13, 2016 1:29 am

Post by Ezeryn » Sat Feb 20, 2016 1:05 am

phillipsmw wrote:Think I've found a solution

catalog/view/theme/default/template/checkout/checkout.tpl

Remove:

$('#button-payment-method').button('loading');
I tried it and it seem to work. Thank you very much!!!

Newbie

Posts

Joined
Sat Feb 20, 2016 1:03 am

Post by dlevesque » Tue May 17, 2016 10:30 am

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 :

Code: Select all

$('#button-payment-method').button('reset');
Modified code looks like this:

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');

Newbie

Posts

Joined
Sat Mar 12, 2016 10:38 am

Post by BMWMaX » Thu Aug 11, 2016 7:19 pm

Thanks. This works

Active Member

Posts

Joined
Sat May 21, 2011 3:24 am
Location - Grootebroek
Who is online

Users browsing this forum: patterson123, paulfeakins, Semrush [Bot], SohBH and 18 guests