Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Accept Terms Checkbox

$
0
0

Hi

This is neat code - many thanks.

The only thing I might add, and this is due to removing the target="_blank" to load the terms page in the same tab, is to add the line:

...

$(".termsspan > input").attr("checked",false);

$("div.Checkout > div > div > fieldset").css("display","none");

...

This is for when the browser Back button is hit in the Terms and Conditions page. Otherwise the checkbox, if previously ticked, stays ticked on the return but the payment options are still hidden.

Cheers

Terry


Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>