Different page after logging in after PayPal return for upgrades

Hello all.

Running S2Member PRO.

When members upgrade and pay via a PayPal Standard button they make the round trip to PayPal and then back to our site and they are automatically taken to that weird S2Member page that is not easily customizable.

On that page they are shown a Login button that members use to log back into the site.

After they log in, currently this button takes them to the Profile page.

How would I change this so that after they log in using this button, they are taken to a special page that I have created…??

Thanks in advance.

The login page is core WordPress. There are a number of plugins that can redirect after login or, if you code, you can google “wordpress redirect after login” for some tutorials on how to do it yourself.

Hi Pat.

Appreciate your response.

I don’t think the page that folks land on after coming back from PayPal is the WordPress login page.

It is a S2Member page, that can be somewhat customized by us, and it has a long button that says to Log in again to continue.

It is this button, when clicked, takes them to the Profile page and I don’t see an option anywhere that I can change to take them to a customized page. (Think it is the PayPal Auto-return integration return page.)

Any ideas…??

Thanks as always.

It would be helpful if you could include the URL of the page that you are being returned to AND the page that logging in takes you to. It is really hard to be helpful when I don’t know if we are talking about he same things? :wink:

Are either of those pages your Login Welcome Page?

If the page PayPal is returning you to is the PayPal return URL you set up in your account and in s2Member then have you tried using either a success="" attribute?

Hi Pat.

Appreciate the response.

Unfortunately, I cannot show you the page or send you the URL as the scenario described by me is happening only after you come back from PayPal after upgrading. So unless you go through the actual process, you will not see these pages via a URL.

But I will show you screenshots of what is happening:

1.) Inside S2Member I have configured the Login Welcome Page:


But the page you see in the screenshot above, Welcome Members, is not the page that they are ending up on when they log in as described below.

2.) When they upgrade their membership, they come back to this page, which is a S2Member page (the PayPal auto-return page):

3.) The “Please Log Back in (Click Here)” button points to https://my-domain-name.com/login/

4.) When I click on the button, it auto-logs me in, and takes me to this page: https://my-domain-name.com/your-profile/

5.) But I want it to go to the “Login Welcome Page” that I had set up inside S2Member, as per my #1 above.

6:) An Aside: If I log into the site’s member’s area directly, it DOES take me to the correct “Login Welcome Page” like it should.

So, if I have set everything up correctly, which I think I have, why would that “Please Log Back in (Click Here)” button take me to https://my-domain-name.com/your-profile/ instead of the “Login Welcome Page”…??? I think after the return trip from PayPal, S2Member cannot figure out that it has to send the person to the “Login Welcome Page” and not the “”/your-profile/" page.

I have also set success="https://my-domain-name.com/success/" but it is totally ignored. I have also set it to success="/success/" but still nothing.

Can you make anything out of all this…??

Thanks a million.

Sorry. I should have clarified that I wanted to see the URL so that I could see any parameters being passed via the URL. :wink:

You specify that this is happening when they upgrade their Membership. Does that mean it does not happen when they purchase a new membership (or anything else for that matter, such as a CCAP).

Are you using BuddyPress? I’ve never had this changing of the login URLs happen to me with BuddyPress, but I’ve seen it mentioned on various forums. As I said in the beginning, s2Member is not doing anything to change the login URL to /login instead of /wp-login.php.

It may be that something in your BuddyPress set up is overriding every other login redirect. (Including the success="" URLs.)

@driven13: May be a conflict with other plugins or themes…

Hi.

We don’t have a “purchase a new membership” option, unless I am mis-reading what that means.

Our site has a Free membership and then the can upgrade to a 1-week membership (one time payment) and then upgrade from that to a monthly membership (auto-renew monthly) and then from that a yearly membership (one time payment).

So whenever a member travels through all these different levels they experience the same wrong link.

We have “ccap” only when moving from the monthly to the yearly but the experience is still the same with the wrong link.

Not using BuddyPress either…:frowning:

Totally flummoxed.

You are using something that is changing your login URL and it is not s2Member. That’s what I’ve been trying to tell you all along. You need to start deactivating themes and plugins until you find out what it is. I’d suggest doing so on a clone of your site, but that’s entirely up to you.

1 Like