ClickBank Recurring Upsell Checkbox Issue

0 replies
I'm trying to set up a recurring payment upsell in ClickBank. Before they approve it, I need to have a checkbox on the offer page that they must check before adding the continuity offer to their order.

I've read every thread I could find on this, and I've got it ***Mostly*** there. However, I'm having one small problem.

When someone clicks on the add-to-order link without clicking the checkbox, it still processes the order.

However, if someone first checks the checkbox, and then unchecks the checkbox, they cannot click on the add-to-order link without triggering the "you need to agree to the terms" warning (which is normal).

Also, the checkbox behaves perfectly, while I'm logged into Wordpress, but acts the way I described when I'm not logged in.

Is there something I'm missing in this code that would keep the initial unchecked checkbox from triggering the warning message?

My site is on WordPress, and I manually put the <head> code into the header.php file directly before the </head> tag.

(Go easy on me, I am not an experienced programmer by any stretch of the imagination...)

This is the code in the <head> tag
Code:
<script type="text/javascript">
function toggleAccept() {
var acceptLink = document.getElementById("accept");
var agreeCheckbox = document.getElementById("agreeCheckbox");
if (agreeCheckbox.checked) {
acceptLink.onclick=function() {
window.location=this.href + "&cbrblaccpt=true";
return false;
}
} else {
acceptLink.onclick=function() {
mustAccept();
return false;
}
}
}
function mustAccept() {
window.alert("Please check the box and agree to the payment terms of this recurring product.");
}

cbrblaccpt


</script>
And this is the code in the body tag for the checkbox, accept link, and decline link:

Code:
<form action="#">

<input type="checkbox" id="agreeCheckbox" onclick="toggleAccept()">
<label for="agreeCheckbox">Check if you accept the billing agreement of $67.00 today and
$47.00 / month then click the link below. You are free to cancel at any
time.</label>
<br/>

<a href="http://productnumber.vendor.pay.clickbank.net/?cbur=a" id="accept" onclick="mustAccept(); return false;">Yes, add this to my order.</a>
</form>

<a href="http://productnumber.vendor.pay.clickbank.net/?cbur=d">No thank you, I am not interested in this offer.</a>
#checkbox #clickbank #issue #recurring #upsell

Trending Topics