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 – On Next Login

Home Forums Community Forum One Time Offers – On Next Login

This topic contains 3 replies, has 3 voices. Last updated by  Bruce 3 years, 4 months ago.

Topic Author Topic
Posted: Sunday Aug 11th, 2013 at 8:11 am #55548

Hi Guys,

Done some fairly extensive searching around the forums and KB to see if I can sort this one but not having much luck.

I love the idea of OTO’s for an upsell and I have a dormant DB of around 700 members I want to try and re-engage.

Ideally I want to send out an email to all my Level 0’s which says ‘we’ve got a special offer for you’ which directs them to the site. When they login they’re presented with the offer. That’s all i want to do.

Problem is each one has varied log in amounts so how can i specify to just redirect them to the page on their next login…no matter what number it is?

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Aug 13th, 2013 at 7:27 am #55658

Instead of the OTO feature in s2Member, in this case you may need a bit customized solution.

You could have in your Login Welcome Page a conditional that checks if the user has a setting that says he’s been shown the offer. If he hasn’t, then show it to him and save that setting so he’s not shown the offer again. These may help:

[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]
http://codex.wordpress.org/Function_Reference/get_user_option
http://codex.wordpress.org/Function_Reference/update_user_option

I hope that helps!

Posted: Tuesday Aug 13th, 2013 at 8:03 am #55665

This looks a little more complicated than I was hoping, thanks for the update though. I’ll let you know how I get on.

Posted: Tuesday Aug 13th, 2013 at 6:26 pm #55699
Bruce
Username: Bruce
Staff Member

Hi Ryan,

You may also want to take a look at WordPress redirect_to variable. This is the variable that s2Member uses to send Users to a different place after login at its core. You can set this variable through the URL that you send Users to to log in, so if you put this URL in your email:

http://yoursite.com/wp-login.php?redirect_to=/one-time-offer/

The User would be sent to yoursite.com/one-time-offer/ after logging in. That may be a simpler solution for you. There’s advanced information on how this variable is used in this part of the WordPress Codex. The info I just gave you should be enough, but if you’re curious how s2Member uses this variable, this article explains the process:

http://codex.wordpress.org/Plugin_API/Filter_Reference/login_redirect

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