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.

Upgrade next 200 signups

Home Forums Community Forum Upgrade next 200 signups

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 3 years, 6 months ago.

Topic Author Topic
Posted: Wednesday Jul 3rd, 2013 at 8:58 pm #52975

I want to offer a free upgrade to the next 200 members who sign up for a free account – is this possible?

If not, is there a reasonable workaround?

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Thursday Jul 4th, 2013 at 6:36 am #52998

You’d need a counter, but s2Member doesn’t have one. You could create save an option in WordPress with your count, and add to it with ever new free registration using the registration notification, I guess.

So your notification would load a custom script, that loads WP and then you update the counter. Then, where you have the free registration form to signup at the higher level, before showing it you check the counter and if it’s higher than 200, then stop giving the upgrade and just register them at level 0 as usual.

These would help:

[hilite path]Dashboard -› s2Member® -› API / Notifications -› Registration Notifications[/hilite]
Knowledge Base » Hacking s2Member® Via Hooks/Filters
http://adambrown.info/p/wp_hooks/hook/wp_loaded
[hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Free Registration Forms[/hilite]
http://codex.wordpress.org/Function_Reference/add_option
http://codex.wordpress.org/Function_Reference/get_option
http://codex.wordpress.org/Function_Reference/update_option
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]

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.