Post by Anzelmi » 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.

Attachments

I have read and agree to the Terms & Conditions .png

I have read and agree to the Terms & Conditions .png (11.91 KiB) Viewed 3932 times


Newbie

Posts

Joined
Tue Jul 03, 2012 3:05 pm

Post by SporeD3v » Mon Nov 16, 2015 4:47 am

I can confirm this bug. The version I tested it on is is 2.1.0.1

New member

Posts

Joined
Sat Nov 14, 2015 7:32 pm

Post by Anzelmi » Tue Nov 17, 2015 3:48 am

I also use 2.1.0.1

Newbie

Posts

Joined
Tue Jul 03, 2012 3:05 pm

Post by Prophet Mykola » Tue Nov 17, 2015 9:41 pm

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.


Posts

Joined
Tue Nov 17, 2015 9:38 pm

Post by Anzelmi » Sun Nov 22, 2015 7:07 pm

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

Newbie

Posts

Joined
Tue Jul 03, 2012 3:05 pm

Post by Anzelmi » Fri Dec 18, 2015 5:17 am

Still the same problem.
Does anyone know the solution to this?

Newbie

Posts

Joined
Tue Jul 03, 2012 3:05 pm

Post by Non Hic » Fri Dec 25, 2015 8:40 am

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 3659 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

Newbie

Posts

Joined
Fri Dec 25, 2015 8:31 am

Post by zupi238 » Wed Jun 01, 2016 5:00 pm

the same problem and i cant fix it. I use 2.1.0.2! Any idea whats the problem?

Newbie

Posts

Joined
Wed May 25, 2016 11:56 pm

Post by Burt65 » Mon Jun 06, 2016 2:25 pm

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 3098 times


Over 95% of all computer problems can be traced back to the interface between the keyboard and the chair...


User avatar
Active Member

Posts

Joined
Mon Nov 18, 2013 3:23 pm
Location - Oz

Post by gmurillo » Thu Dec 01, 2016 12:39 am

Thanks, works perfect for me.

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

Regards! 8)

Newbie

Posts

Joined
Thu Jan 21, 2016 4:53 am

Post by marvinac1 » Sun Dec 03, 2017 8:58 am

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

Newbie

Posts

Joined
Mon Jul 31, 2017 11:26 am
Who is online

Users browsing this forum: No registered users and 11 guests