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.

Customize paypal_return page

Home Forums Community Forum Customize paypal_return page

This topic contains 1 reply, has 2 voices. Last updated by  David Welch 4 years, 10 months ago.

Topic Author Topic
Posted: Sunday Mar 11th, 2012 at 5:12 pm #7868
David HAMON
Username: damon901

Hi,

I would like to customize and translate Paypal_Return Page, hox can I do that.

Thank you

David

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday Mar 13th, 2012 at 8:31 pm #8065
David Welch
Username: dwbiz05

Well, I think you have a couple of options.

You could track down the file that S2 uses to create that file. I don’t know which it is. But if you change that file then update your version at a later time, you will have to re-do it again if it gets replaced by a newer version.

The second option is to hook into the paypal return hook and re-direct to your own page.

That can be done like this:

<?php
add_action('ws_plugin__s2member_during_paypal_return_during_subscr_signup_w_update_vars','my_pp_return');
add_action('ws_plugin__s2member_during_paypal_return_during_subscr_signup_wo_update_vars','my_pp_return');
function my_pp_return(){
	//do any processing if you want...
	$thankyou_page = site_url('replace-with-your-thankyou-page-slug');
	
	wp_redirect($thankyou_page);
}
?>

In case you don’t know, that info should go in a new (or existing) file here: yourwebsite.com/wp-content/mu-plugins/s2hacks.php

There are other hooks that you could possibly user for paypal return that can be found here:
http://www.s2member.com/codex/stable/s2member/paypal/package-filters/

Hope that helps,

Dave

PS. I’ve not done extensive testing but it should work. :)

Viewing 1 replies (of 1 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.