PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

How to customize Clickbank Thank You page?

s2Member Plugin. A Membership plugin for WordPress®.

How to customize Clickbank Thank You page?

Postby Kojak » November 12th, 2011, 10:04 pm

We have 2 sales pages. The main sales page is on the website and it uses PayPal for payment. We have another sales page for affiliates, which uses ClickBank for payment.

After payment, the customer is taken back to the website where they register their account to the membership site. Its at: wp-login.php?action=register.

ClickBank requires the text "Your credit card statement will show a charge from CLKBANK*COM." I don't want to put that on the register page when the customer pays with PayPal. Is there a way to customize the ClickBank registration thank you page to include the above statement, but not have it when the customer pays with PayPal?

Alex
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Cristián Lávaque » November 15th, 2011, 12:26 am

Yes. Please read the documentation under WP Admin -> s2Member -> ClickBank Options -> Thank You -> Optional Customizations

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 15th, 2011, 9:51 am

I did.
There's also a Preview Thank You page button in there. When I click on that Preview link, the page that shows up is NOT the Thank You page that the user is actually redirected to after payment. That's because the Thank You page is set to wp-login.php?action=register in General Options -> Registration/Profile Fields & Options.

After payment from ClickBank, we want the user to register their account. In ClickBank, we tell it that the Thank You page is located at wp-login.php?action=register, which is the same as what PayPal is setup as.

The way I see it is, there's 2 options:
1. Somehow customize wp-login.php to display the Clickbank message if the payment comes from Clickbank.
2. Setup another page for the Clickbank redirect that does exactly what wp-login.php does. I just don't know how to setup another page that does exactly what wp-login.php does.

Thanks!
Alex
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Cristián Lávaque » November 15th, 2011, 2:14 pm

You can use a free registration pro-form to create a new custom registration page that isn't wp-login.php. The problem with this one is that it'll work even with Open Registration disabled, so if a non-customer finds that page, he'll be able to create an account. This won't be a problem if you have Open Registration enabled, though.

You can have the thank you page give the required ClickBank explanations and at the end have a link that takes the person to register his account.

Now, if you have Open Registration disabled, then you can customize the default registration page to add the custom ClickBank stuff right there WP Admin -> s2Member -> General Options -> Login/Registration Design. You wouldn't need to worry if they came from ClickBank or not because it'd only be shown to those that paid, because after payment s2Member sets some cookies that will let him register or the user will get a registration link with the necessary access to register.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 15th, 2011, 2:26 pm

Open Registration is disabled.

I don't like the idea of having a non-customer be able to find the page and create an account.

If I go into Login/Registration Design, and add the custom ClickBank text in there, then won't anyone that pays with PayPal also see that custom ClickBank text?
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Cristián Lávaque » November 15th, 2011, 2:46 pm

Ah, yes he would, sorry I didn't understand you were also selling the membership with PayPal. I'm sorry I missed that.

Then it may be best to have the custom thank-you page for ClickBank give the required notices and then have a link at the end that takes the user to the registration form to create his/her account. Follow the instructions at the end of the thank-you page documentation to create the custom version. WP Admin -> s2Member -> ClickBank Options -> Thank You -> Optional Customizations
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 15th, 2011, 3:36 pm

And then I just change Clickbank to the new custom thank you page?

Will the custom page still be secure?

Thank you! You've been VERY helpful...AGAIN!
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Cristián Lávaque » November 15th, 2011, 6:23 pm

Yes, you don't need to worry about security, because only those that have the cookies set by s2Member will be allowed to register, and only those that arrived to s2Member's thank-you URL when returning from ClickBank with all the needed variables as given by ClickBank after the checkout, will get the cookies set. So no need to worry there. ;)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 15th, 2011, 7:17 pm

Ok.
I'll give this a try. Hopefully I'm able to figure it out without further questions.
Thanks very much for your support!
Alex
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Cristián Lávaque » November 16th, 2011, 2:18 pm

You're welcome. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 16th, 2011, 2:41 pm

Not yet.
I haven't been able to work on it today though. We're in the midst of another project that takes precedence. I'm working the Clickbank project around that other project's timeline.
I'll let you know how it goes either way.
Thanks!
Alex
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 16th, 2011, 9:06 pm

Is there a way to change the destination URL of that big "Continue" button on the Clickbank Thank You page?
I had a look at the default-return.php file, and it looks like the 'Continue' button is auto-created by the %%continue%% variable.
Alex
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Kojak » November 17th, 2011, 8:45 pm

I haven't been able to figure out how to change the destination of that %%continue%% short code. I figured it may pull it's value from a variable passed in by the URL. I tried adding "&continue=http......" to the URL of the Clickbank Thank You page, but it didn't change anything. And yes, I did encode the "://" part of the URL. I just can't remember what the encoded values were for those characters.

Any thoughts?
Alex
http://www.EclipseSEO.com - Search Engine Optimization for local businesses - Social Media consultants.
Helping your business get more customers, to spend more money, more often!
User avatar
Kojak
Registered User
Registered User
 
Posts: 13
Joined: October 28, 2011
Location: Canada

Re: How to customize Clickbank Thank You page?

Postby Jason Caldwell » November 20th, 2011, 11:27 pm

Hi Alex. Thanks for the follow-up.

Sorry, it's not possible to change the %%continue%% Replacement Code. This is handled dynamically by s2Member Pro, based on the action that has taken place. That being said, you could use a Thank-You Page all of your own design, instead of s2Member's default, if you prefer. See the attached screenshot, or your Dashboard, under: s2Member -> ClickBank Options -> Thank-You Page.

( click to enlarge )
SNAG-0129.png



Or, for the more adventurous, there are two Filters that could be used to dynamically modify the redirection URL after Signup and/or after a Modification. Please create this directory and file.

/wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code: Select all
<?php
add_filter 
("ws_plugin__s2member_redirection_url_after_signup", "my_s2_redirection_url_after_signup");
function my_s2_redirection_url_after_signup ($what_s2member_says, $vars = array ())
    {
        return "http://example.com/thank-you/";
    }
add_filter ("ws_plugin__s2member_redirection_url_after_modification", "my_s2_redirection_url_after_modification");
function my_s2_redirection_url_after_modification ($what_s2member_says, $vars = array ())
    {
        return "http://example.com/thank-you/";
    }
?>
See also: viewforum.php?f=40#src_doc_overview_description
s2-hacks.zip
(337 Bytes) Downloaded 7 times
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 0 guests

cron