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.

One-Time Offers Not Kicking In

Home Forums Community Forum One-Time Offers Not Kicking In

This topic contains 8 replies, has 2 voices. Last updated by  Cristián Lávaque 4 years, 6 months ago.

Topic Author Topic
Posted: Saturday Jun 9th, 2012 at 6:01 pm #16085

I am operating S2Member Pro, and the normal page shown after login is http://members.example.com/dashboard
For the first login I want to redirect them to http://members.example.com/welcome instead, so I have configured a One-Time Offer as follows:

1:1:http://members.example.com/welcome

However, when somebody registers at level 1, they are taken to http://members.example.com/dashboard/?first

How can I fix this behavior?

List Of Topic Replies

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Monday Jun 11th, 2012 at 11:30 am #16135

Hhhm, tried it two days later, and now it’s working. Strange.

Posted: Tuesday Jun 12th, 2012 at 6:48 am #16225

Hi Uli.

Are you, by chance, using the hack to auto-login after registration? That “?first” in the URL is something I had put in the redirection URL when s2Member didn’t have the One-Time Offer redirection yet.

Posted: Wednesday Jun 13th, 2012 at 8:25 am #16359

Christian,
I have not implemented anything… but I still get that erroneous http://members.example.com/dashboard/?first

What do I have to change/disable/edit to make this work properly?

– I have S2Member Framework Version 120608 + s2Member Pro v120608 installed, without any customizations.
– In General Options / One-Time Offers, I have the following code (replaced example.com with my domain)
1:1:http://members.example.com/welcome

Thanks,
Uli

  • This reply was modified 4 years, 6 months ago by  Uli Iserloh.
Posted: Thursday Jun 14th, 2012 at 5:11 am #16419

I see. So you have nothing in the /wp-content/mu-plugins/ folder?

Are you using an s2Member pro-form or button with the [hilite mono]success[/hilite] attribute pointing to a URL?
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Custom Return URLs Upon Success[/hilite]
[hilite path]Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes -> success[/hilite]

Did you enter a redirection URL for the Login Welcome page? [hilite path]Dashboard -› s2Member® -› General Options -› Login Welcome Page[/hilite]

If it’s none of the above, then it is possible that some other plugin added that redirection. This is not something s2Member does by itself, it’s either user input or another plugin. Please test deactivating other plugins one by one and checking after each if you still have that redirection. It’s better to use two browsers, one to make the changes and another to test, so you don’t log in and out of the admin account all the time.

I hope that helps!

Posted: Thursday Jun 14th, 2012 at 8:41 am #16463

Thanks for the response Christian.

[1] Ooops. I had forgotten that I placed the autologin/redirect hack into /wp-content/mu-plugins/
Removed that file.
[2] When I attempted the process again, I was sent to the desired welcome page for first login as specified in the One Time Offers options.
[3] After I logged out, and back in, I was redirected to the correct Login Welcome Page.

This resolves my issue with the One Time Login not kicking in.

But now I have a question about Auto-Login that was possible with the hack – so I started a new thread since this is a new topic: http://www.s2member.com/forums/topic/auto-login-after-successful-payment/

Posted: Friday Jun 15th, 2012 at 2:14 am #16548

I’m glad that solved it! Thanks for the update. :)

I’ll look at your other post in a moment.

Posted: Monday Jun 25th, 2012 at 3:05 pm #17398

Question: What parameter does S2 Member use to keep track if a user has logged on before? I just tested the subscription process with a new email, username, first and last name, and S2M ignored the page specified in One-Time-Offers…

Weird.

Posted: Tuesday Jun 26th, 2012 at 4:19 am #17499

I haven’t checked latetly, but am pretty sure it’s an entry in usermeta. If you created a new user, then the login OTO should have worked, it wouldn’t have counted another user’s logins.

Are you using the Post Registration Autologin hack? I seem to remember you are. s2Member will count that login too, if I’m not mistaken, so maybe that threw your count off when you tested?

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