Page 1 of 1

How to customize Clickbank Thank You page?

PostPosted: November 12th, 2011, 10:04 pm
by Kojak
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 12:26 am
by Cristián Lávaque
Yes. Please read the documentation under WP Admin -> s2Member -> ClickBank Options -> Thank You -> Optional Customizations

I hope that helps. :)

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 9:51 am
by Kojak
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 2:14 pm
by Cristián Lávaque
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. :)

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 2:26 pm
by Kojak
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?

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 2:46 pm
by Cristián Lávaque
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 3:36 pm
by Kojak
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!

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 6:23 pm
by Cristián Lávaque
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. ;)

Re: How to customize Clickbank Thank You page?

PostPosted: November 15th, 2011, 7:17 pm
by Kojak
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 16th, 2011, 2:18 pm
by Cristián Lávaque
You're welcome. :)

Re: How to customize Clickbank Thank You page?

PostPosted: November 16th, 2011, 2:41 pm
by Kojak
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 16th, 2011, 9:06 pm
by Kojak
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 17th, 2011, 8:45 pm
by Kojak
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

Re: How to customize Clickbank Thank You page?

PostPosted: November 20th, 2011, 11:27 pm
by Jason Caldwell
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