Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 11th Nov 2011, 11:36 AM   #1
Active Warrior
War Room Member
 
Join Date: 2010
Posts: 45
Thanks: 0
Thanked 3 Times in 3 Posts
Default
Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Hi,

In order to use clickbank pitchplus for recurring product, I have to use a code ( javascript ) provided by clickbank. The problem is that when I put this code(I use wordpress), the checkbox turns out to normal box text type.

Here is what clickbank said:
Sample Recurring Billing Code

The following is an example of some simple code you could put on your PitchPlus Upsell Pitch Page to allow for Recurring Billing products to be sold in your One-Click Upsell flow. It is very important that you collect and pass the cbrblaccpt parameter to ClickBank if you are selling a recurring billing product. You must collect acceptance to terms from the consumer to set this value or your flow will not be approved.
<html>
<head>
<!—
This script content should be placed in the <head> element on your PitchPlus upsell pitch page
–>
<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(“By clicking accept, you agree to the payment terms of this recurring product.”);
}
</script>
</head>
<body>
<h1>One Click Recurring Upsell Sample Page</h1>
<p>It’s neat – buy it!</p>
<table width=”100%”>
<tr>
<td>
<!–
This is the accept link which may be placed anywhere in the <body> element of your page. ITEM_BEING_UPSOLD & YOUR_NICKNAME need to be replaced. For users with javascript disabled it will function but they will need to agree to the terms and conditions on the orderform.
–>
<a href=”http://ITEM_BEING_UPSOLD.YOUR_NICKNA....net?cbur=a” id=”accept”
onclick=”mustAccept(); return false;”>Accept</a>
</td>
<td>
<!–
This is the decline link which may be placed anywhere in the <body> element of your page. ITEM_BEING_UPSOLD & YOUR_NICKNAME need to be replaced
–>
<a href=”http://ITEM_BEING_UPSOLD.YOUR_NICKNAME.pay.clickbank.net? cbur=d”>Decline</a>
</td>
</tr>
<tr>
<td colspan=”2″>
<form action=”#”>
<!–
This is the box that the customer must check before accepting the upsell. The text should be adjusted to match the initial purchase amount, recurring amounts & frequency
–>
<input type=”checkbox” onchange=”toggleAccept()” id=”agreeCheckbox”>
<label for=”agreeCheckbox”>I agree to the following payment terms: An initial payment of $0.00 with recurring payments of $0.00/frequency. I understand that I can cancel at any time.</label>
</form>
</td>
</tr>
</table>
</body>
</html>

Franz Regan is offline  
Unread 14th Nov 2011, 06:45 PM   #2
Active Warrior
War Room Member
 
telewarrior's Avatar
 
Join Date: 2011
Posts: 35
Thanks: 38
Thanked 5 Times in 4 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Hi,

What comes to mind immediately is that the comments are not correct in most cases. In HTML, commented sections require two dashes each and not one as in most of the places shown. See W3Schools for more information.

The root of the problem may be a difference of character codes during the copy and past operation. Simple ASCII text has a single code for characters, while Unicode has double the number of codes per character.

While this may be a case of manually adding returns while formatting the code for the post, this would be the first place I'd look.

When attempting to debug things, try removing sections of code to troubleshoot where the problem is and is not. Kinda like playing 20 questions to uncover what works and where it breaks. It might be in HTML, the JavaScript, or even in the formatting for comments.

One tool that I use to check and see if a page's code is valid is Amaya (GPL by World Wide Web Consortium (W3C)). It does a very robust parsing of the code and will reject files that have HTML that is "not well formed". That will tell if the code might break summarily upon loading. It will even reject <br> in favor of the more formal <br />.

Of course, YMMV , but consider stripping down to the basic and building it back up until the error shows.

Hope that helps,

Brett
telewarrior is offline  
Unread 15th Nov 2011, 12:23 PM   #3
Warrior Member
 
ShowSpace's Avatar
 
Join Date: 2011
Posts: 20
Thanks: 5
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Originally Posted by telewarrior View Post

What comes to mind immediately is that the comments are not correct in most cases. In HTML, commented sections require two dashes each and not one as in most of the places shown. See W3Schools for more information.
I think this happens if you past in two dashes in this forum (or maybe a text editor the OP uses), it converts it into one slightly longer dash, i.e. — vs. -

Create your affiliate storefront today with ShowSpace!
Free 30 day trial - No risk - Knowledge Base to get you up and running fast
ShowSpace is offline  
Unread 16th Nov 2011, 12:02 PM   #4
Active Warrior
War Room Member
 
telewarrior's Avatar
 
Join Date: 2011
Posts: 35
Thanks: 38
Thanked 5 Times in 4 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Hi,

Yes, that seems to be true, but I carefully examined the pasted in code from above and there are still the issues that I pointed out. Take this comment from the code above for example:

<!—
This script content should be placed in the <head> element on your PitchPlus upsell pitch page
–>

The opening comment is correct (extended by the forum), but the ending one needs two dashes and it only has one. That will obviate the code below until the parser in a particular browser either handles the error by recognizing it (most modern browsers have some code to handle such errors gracefully) or goes insane.

That is why it is important to check the code out in a robust program that will catch such errors. That doesn't mean to say that this is the exact source of the error, but behavior will vary depending on whether you are using IE, FF, Konqueror, Opera, etc.

Admittedly, pasting it into a forum and then copying it out again really messes with the resulting text. Just try it and see the mess you get.

While there are surely workarounds, I'd be happy to test an attached text file in Amaya in case the author is on a Mac.

Note that WP is in Php and placing this as a page may have its issues both in the desired operation and how WP serves it up. Either way, it is both instructive and valuable to test the snippet intensely before deploying in a production environment. At least the error was detected.

Brett
telewarrior is offline  
Unread 24th Apr 2013, 02:39 AM   #5
Warrior Member
Registered Member
 
Join Date: 2013
Posts: 4
Thanks: 0
Thanked 4 Times in 4 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Hi Franz, did you ever sort this Clickbank PitchPlus recurring billing script out? I am trying to do the same but not getting far. If you got the solution through hiring a coder, I'm happy to share your cost for the solution. Thanks.

Vic
acuvic is offline  
Unread 24th Apr 2013, 07:01 AM   #6
RockEye ERP for Africa
 
Join Date: 2012
Location: Africa
Posts: 119
Thanks: 2
Thanked 6 Times in 6 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

The script that you have shared doesn't look so promising. You can hire any professional to work on it.
annaharris is offline  
Unread 13th Aug 2013, 03:53 PM   #7
Warrior Member
 
Join Date: 2013
Posts: 18
Thanks: 10
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

i am having the same problem? would you recommend anyone?

regards

Lance
lancelotw is offline  
Unread 15th Aug 2013, 01:06 AM   #8
Active Warrior
War Room Member
 
Mark Ford's Avatar
 
Join Date: 2008
Location: New Zealand
Posts: 93
Thanks: 13
Thanked 17 Times in 16 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

The sample code provided works - its a straightforward javascript - no rocket science here - why do people over complicate stuff

I threw a sample up so you can see it in action. If the user clicks the buy now button on your upsell page without clicking the accept box, the javascript will throw the alert that they have to check the box i.e agree to the terms which authorizes the recurring - they click the accept box - then hit the buy button - its all done - sent to CB who handle the rest. If they click the no thanks link - the deny kicks in and shoots them back to the original item.

Now, as to why its doing weird stuff in your wordpress page - am not sure but would need to see a link to help you any further.
Mark Ford is offline  
Unread 15th Aug 2013, 03:42 AM   #9
Warrior Member
 
Join Date: 2013
Posts: 18
Thanks: 10
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

hey Mark!

i think i have my code all confused??? on my pitch page there is a "buy now" button and a "no thanks" button

the Buy now button is linked to
”http://ITEM_BEING_UPSOLD.YOUR_NICKNA...nk.net?cbur=a”

and the No Thanks button is linked to
http://ITEM_BEING_UPSOLD.YOUR_NICKNA...clickbank.net? cbur=d

as the upsell is for a recurring product...i need the checkbox on the page....
can i just put the checkbox code on the page? or does it all have to be tied in like the code that Franz Regan gave?

regards

Lance
lancelotw is offline  
Unread 15th Aug 2013, 04:18 AM   #10
Active Warrior
War Room Member
 
Mark Ford's Avatar
 
Join Date: 2008
Location: New Zealand
Posts: 93
Thanks: 13
Thanked 17 Times in 16 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Yeh you could but you would have to recode it - the javascript they provide links it all together with their form code for the check box.

Check this quick sample http://www.wptechtalk.com/sample.html
Acutal CB product links have been removed but you will see the ?cbur=a and d links if you mouseover.

Ignore the missing images - but you will see how it works - if they click the buy button without checking the option it will throw the alert - you can't proceed past without checking the option - it's all tied together which is why it's easy for you to use the code.

Last edited on 15th Aug 2013 at 04:22 AM. Reason: link typo
Mark Ford is offline  
The Following User Says Thank You to Mark Ford For This Useful Post:
Unread 15th Aug 2013, 04:35 AM   #11
Warrior Member
 
Join Date: 2013
Posts: 18
Thanks: 10
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

ahhh ok i understand....how much would you charge to do it for my site?

i only need the code...my website creator can insert it!

regards

Lance
lancelotw is offline  
Unread 15th Aug 2013, 04:37 AM   #12
Wordpress Wiz
War Room Member
 
RyanY's Avatar
 
Join Date: 2012
Location: We work remotely!
Posts: 240
Thanks: 25
Thanked 12 Times in 10 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Hi Lancelotw,

Please refer to the code above - at the start of this conversation.

Best Regards,
Ryan

Digital consultant, to help you get the best out of your digital presence.
RyanY is offline  
Unread 15th Aug 2013, 04:45 AM   #13
Warrior Member
 
Join Date: 2013
Posts: 18
Thanks: 10
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

sorry i a total noobe with code....

the only thing im stuggling get my head round is....do i leave the "Buy Now" button and the "No thanks" button alone and insert this code also?

those two buttons have the two links...

the Buy now button is linked to
”http://ITEM_BEING_UPSOLD.YOUR_NICKNA...nk.net?cbur=a”

and the No Thanks button is linked to
http://ITEM_BEING_UPSOLD.YOUR_NICKNA...clickbank.net? cbur=d

am i right in thinking that i put the code in aswell as leaving those buttons as they are?

regards

Lance
lancelotw is offline  
Unread 15th Aug 2013, 04:50 AM   #14
Active Warrior
War Room Member
 
Mark Ford's Avatar
 
Join Date: 2008
Location: New Zealand
Posts: 93
Thanks: 13
Thanked 17 Times in 16 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Yep - use the code at the top - javascript in the head as they show.

Then drop your form action in:

<form action="#">
<input type="checkbox" onChange="toggleAccept()" id="agreeCheckbox">
<label for="agreeCheckbox">I agree to the following payment terms: blabla bla and what ever else you want to say etc - I understand that I can cancel at any time.</label>
</form>

Then add the links how they describe.

Accept button code
<a href="http://youroffer.pay.clickbank.net/?cbur=a" id="accept" onClick="mustAccept(); return false;">

And your decline code:
<a href="http://youroffer.pay.clickbank.net/?cbur=d">NO THANK YOU</a>

Once they approve it - they will give you the ID number to add to your link and then it's live.
Mark Ford is offline  
The Following User Says Thank You to Mark Ford For This Useful Post:
Unread 15th Aug 2013, 04:59 AM   #15
Active Warrior
War Room Member
 
Mark Ford's Avatar
 
Join Date: 2008
Location: New Zealand
Posts: 93
Thanks: 13
Thanked 17 Times in 16 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

the only thing im stuggling get my head round is....do i leave the "Buy Now" button and the "No thanks" button alone and insert this code also?
You have to add the check box as I described as this once clicked sends the parameters to Clickbank.

Without this then Clickbank won't charge the recurring - its basically saying
" Yeah I accept that I have to pay you xx per month"

Use the button codes I showed for your accept and no thanks - they are in the sample code and you're good to go.

Also check https://support.clickbank.com/entrie...7138-PitchPlus which shows you how it all ties together.

Last edited on 15th Aug 2013 at 04:59 AM. Reason: typo
Mark Ford is offline  
Unread 15th Aug 2013, 07:19 AM   #16
Warrior Member
 
Join Date: 2013
Posts: 18
Thanks: 10
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Ok so this is what I'm doing step by step…i will use *** to separate out items so i don't get confused

1) i am putting this code in the HEAD section of the website

***

–>
<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(“By clicking accept, you agree to the payment terms of this recurring product.”);
}
</script>
</head>
<body>
<h1>One Click Recurring Upsell Sample Page</h1>
<p>It’s neat – buy it!</p>
<table width=”100%”>
<tr>
<td>
<!–

***

2)i am adding this code for the Tick Box section below my payment buttons

***
–>
<input type=”checkbox” onchange=”toggleAccept()” id=”agreeCheckbox”>
<label for=”agreeCheckbox”>I agree to the following payment terms: An initial payment of $197.00 with recurring payments of $27.00/month. I understand that I can cancel at any time.</label>
</form>
</td>
</tr>
</table>
</body>
</html>

***

3) I have inserted this into the body element of the page

***
<a href=”http://ITEM_BEING_UPSOLD.YOUR_NICKNA...nk.net?cbur=a” id=”accept”
onclick=”mustAccept(); return false;”>Accept</a>
</td>
<td>
<!–
This is the decline link which may be placed anywhere in the <body> element of your page. ITEM_BEING_UPSOLD & YOUR_NICKNAME need to be replaced
–>
<a href=”http://ITEM_BEING_UPSOLD.YOUR_NICKNA...clickbank.net? cbur=d”>Decline</a>
</td>
</tr>
<tr>
<td colspan=”2″>
<form action=”#”>
<!–

***

4)I have inserted this into the this also into the body element of the page

***

<a href=”http://ITEM_BEING_UPSOLD.YOUR_NICKNA...clickbank.net? cbur=d”>Decline</a>
</td>
</tr>
<tr>
<td colspan=”2″>
<form action=”#”>
<!–

***
5)once I change the links to match my nickname and product will all this be ok?
lancelotw is offline  
Unread 15th Aug 2013, 08:38 AM   #17
Warrior Member
 
Join Date: 2013
Posts: 18
Thanks: 10
Thanked 0 Times in 0 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

ignore that last post i was talking complete gobbledegook!

does anyone know anyone who could help me with this?

i dont think that sample code is a good one...i think some of the code is wrong....

regards

Lance
lancelotw is offline  
Unread 15th Aug 2013, 03:28 PM   #18
Active Warrior
War Room Member
 
Mark Ford's Avatar
 
Join Date: 2008
Location: New Zealand
Posts: 93
Thanks: 13
Thanked 17 Times in 16 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

The code works as I have shown you - if you are still struggling after the examples posted it's best if you grab your programmer or someone from the Warriors For Hire and have them set it up in your page for you. It will save you pulling out your hair
Mark Ford is offline  
The Following User Says Thank You to Mark Ford For This Useful Post:
Unread 11th Feb 2014, 05:45 PM   #19
Active Warrior
 
Join Date: 2010
Posts: 38
Thanks: 1
Thanked 4 Times in 3 Posts
Arrow
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Huge thanks @Mark Ford.

Would you know how to do this for a 2 upsell sequence which includes a recurring product in the "middle" of said sequence? I am having problems.

Below OTP stand for One Time Payment

Thanks to you I implemented the above correctly for:
[original (OTP), + upsell offer (Recurring), end]...

...but having problems if I toss on a 2nd upsell offer:
[original (OTP), + upsell offer #1 (Recurring), + upsell offer #2 (OTP),end]

It seems to go through the flow correctly in terms of which pages I land on next, but at the end of the day my Mr Test Customer only gets 2 products (both of the OTP products), even though he accepted all

Thanks for any thoughts on this one!
21clg is offline  
Unread 7th Apr 2014, 12:39 PM   #20
Luis Vaugier
Registered Member
War Room Member
 
Luis Vaugier's Avatar
 
Join Date: 2012
Location: Japan
Posts: 101
Thanks: 6
Thanked 15 Times in 12 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Thank you! You really saved me Mark Ford
Luis Vaugier is offline  
Unread 10th Apr 2014, 12:19 AM   #21
VIP Warrior
War Room Member
 
Join Date: 2008
Location: , , .
Posts: 7,094
Thanks: 1,776
Thanked 2,724 Times in 1,343 Posts
Default
Re: Clickbank Pitchplus script
Share on: 
fb share twitter share gplus share more share

Damn this post 2 months would have saved me pulling hair out. I am nearly bald. LOL

celente is offline  
Closed Thread


Bookmarks

Tags
clickbank, pitchplus, script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 02:11 AM.