latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Click bank Intergration and Funnel Question

Home Forums Community Forum Click bank Intergration and Funnel Question

This topic contains 3 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Tuesday Jul 3rd, 2012 at 12:22 pm #18196

Hey

I see that you have he short codes for clickbank intergration. Is it possible to inititate the clickbank sales
from outside of s2Member.

For instance I have a 3rd party sales funnel in place. I would need to place these clickbank payment
buttons on the system outside of s2. Now i understand that you are creating s signature and passing
the IP over to clickbank. What do i need to do to maje this work outside of s2 and have it create
the member in the s2 system.

I am a developer of over 11 years, so if you point me in the right direction coding wise i can understand
what to do.

Please let me know as soon as you can, cause i need to start testing this funnel rather quickly

Thanks
Ricky Mataka

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Jul 3rd, 2012 at 4:21 pm #18221

Hi I found the shot code that generated the clickbank buy button. I need to get that shoertcode output outside of WORDPRESS totally. So i would have to mimick the what s2 is currently doing.. what concerns me here is the invoice and signature variables. Can I please get someone to help me understand what needs to be passed to clickbank in order to have a successful s2 member level transaction.

THanks
RIcky

Posted: Tuesday Jul 3rd, 2012 at 5:39 pm #18225

Ok just incase anybody is banging there head on this one here I figured it out
Just make a external file in your WP install that sits in the same DIR as wp-load.php
say the file name is (clickbank.php)

include_once "wp-load.php";
function handle_custom_clickbank_redirections()
	{
		if($_GET['type']==1)
		{
			$clickbank_checkout = do_shortcode('[s2Member-Pro-ClickBank-Button ... output="url" /]');
		}else{
			$clickbank_checkout = do_shortcode('[s2Member-Pro-ClickBank-Button ... output="url" /]');
		}
		wp_redirect($clickbank_checkout); exit;
	}
handle_custom_clickbank_redirections($_GET['type']);

do then you would just access like this
http://xxx.com/members/clickbank.php?type=1
http://xxx.com/members/clickbank.php?type=2

(assumes /members/ has your WP installation)

Where Type would control the IF statement as to which shortcode to execute
So basiclly you would generate your clickbank shortcodes inside of s2
and the important thing to change is output=”anchor” to output=”url
or the redirect will fail!!

Now you can simply link any sales button OUTSIDE of wordpress or s2 with the links
above ;)

Cheers!
Ricky

Posted: Wednesday Jul 4th, 2012 at 7:26 am #18270

Well done figuring that one out, Ricky! That’s exactly the solution we suggest for this. :)

Here’s an example for different products:

/wp-content/mu-plugins/s2hacks.php

[hilite pre_code]
'[[s2Member-Pro-ClickBank-Button cbp="1" ... output="url" /]]',
2 => '[[s2Member-Pro-ClickBank-Button cbp="2" ... output="url" /]]',
3 => '[[s2Member-Pro-ClickBank-Button cbp="3" ... output="url" /]]',
4 => '[[s2Member-Pro-ClickBank-Button cbp="4" ... output="url" /]]',
5 => '[[s2Member-Pro-ClickBank-Button cbp="5" ... output="url" /]]',
);
if (isset($shortcodes[$_GET['clickbank']])) {
$clickbank_checkout = do_shortcode($shortcodes[$_GET['clickbank']]);
wp_redirect($clickbank_checkout);
exit;
}
}
}
[/hilite]

http://yoursite.com/?clickbank=1

Viewing 3 replies - 1 through 3 (of 3 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.