- This topic has 2 replies, 2 voices, and was last updated 10 years, 5 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › page direction from Paypal
This is coming together, one step at a time.
I have the payment set up and working. But when Paypal sends the user back to my site, the user is directed back to the home page. I would prefer that the user go to a thank you page. How do I control that?
Then, after he logs in, I need to control that page redirect. Right now, he also goes to the home page.
I am searching all through both docs and plugin settings, but I do not see where URLs are controlled.
Hi in regards to your first question carry out the following. This is for members who pay for registration and return back to the website.
Add the following function to your theme function.php file.
add_action('swpm_front_end_registration_complete', 'sam_after_registration_redirection');
function sam_after_registration_redirection()
{
$url = 'http://www.yourwebsite.com/thank-you/';//TODO - Specify the URL that you want to redirect to
wp_redirect($url);
}
For your second question you can use the following add-on.
Again, thank you.
The add-on works fine. as to the first part, I will attempt to do that as you say. I have zero HTML/CSS experience, so this may become a bit of trial and error. [I will back up the file before attempting this]