Page 1 of 1

Terms & Conditions stuck

Posted: Sun Nov 15, 2015 7:44 pm
by Anzelmi
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.

Re: Terms & Conditions stuck

Posted: Mon Nov 16, 2015 4:47 am
by SporeD3v
I can confirm this bug. The version I tested it on is is 2.1.0.1

Re: Terms & Conditions stuck

Posted: Tue Nov 17, 2015 3:48 am
by Anzelmi
I also use 2.1.0.1

Re: Terms & Conditions stuck

Posted: Tue Nov 17, 2015 9:41 pm
by Prophet Mykola
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.

Re: Terms & Conditions stuck

Posted: Sun Nov 22, 2015 7:07 pm
by Anzelmi

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??? 
            }

Re: Terms & Conditions stuck

Posted: Fri Dec 18, 2015 5:17 am
by Anzelmi
Still the same problem.
Does anyone know the solution to this?

Re: Terms & Conditions stuck

Posted: Fri Dec 25, 2015 8:40 am
by Non Hic
The solution which is already suggested works fine for me. (I too can confirm this bug) :clown:

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">&times;</button></div>');
                }
            } else {
Fixed:

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">&times;</button></div>');
                }
            } else {
Added:

Code: Select all

$('#button-payment-method').button('reset');
opencart bug fix.png

opencart bug fix.png (27.76 KiB) Viewed 5829 times

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.
O0

Re: Terms & Conditions stuck

Posted: Wed Jun 01, 2016 5:00 pm
by zupi238
the same problem and i cant fix it. I use 2.1.0.2! Any idea whats the problem?

Re: Terms & Conditions stuck

Posted: Mon Jun 06, 2016 2:25 pm
by Burt65
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:

warning.JPG

warning.JPG (11.26 KiB) Viewed 5268 times


Re: Terms & Conditions stuck

Posted: Thu Dec 01, 2016 12:39 am
by gmurillo
Thanks, works perfect for me.

$('#button-payment-method').button('reset');

Regards! 8)

Re: Terms & Conditions stuck

Posted: Sun Dec 03, 2017 8:58 am
by marvinac1
This worked for me as well. Went to the end of the line and hit enter to add a new line. Copied the code below and saved it. Up loaded it and done deal. Issue fixed.

$('#button-payment-method').button('reset');