Posted: December 20, 2013 at 9:28 am
|
I use the s2Member membership management plugin and have been looking forward to being able to set Event Espresso event discounts based on membership level. Unfortunately, I just discovered that the Event Espresso s2Member integration is built to accommodate only the four (4) basic levels in the s2Member default setup. s2Member is designed to easily accommodate up to 99 membership levels, not just the four basic levels. To be widely applicable and useful to s2Member users, the EE s2Member integration should be able to accommodate as many levels as the user has set up for his/her s2Member configuration. On my site, I have set up s2Member to allow for 25 membership levels, and I would like to have the event membership discount available to Level 6 and above. But this is not possible with the current dropdown menu limit of four (4). I realize that the EE s2Member integration is still in the BETA phase; therefore, I strongly recommend that the dropdown menu of s2Member levels on the EE “Member Settings” page be changed to a numeric input box or that its upper limit of levels be set to recognize the maximum number of s2Member levels set by the s2Member user. Thanks in advance for this fix, if it is possible to implement. (If it is not possible, then the EE s2Member integration is useless for my purposes.) |
|
The free version of S2, which I thought most people using S2 would be using, has 4 levels. And I didn’t have a paid version of S2 to work with. Assuming that the paid version uses the same system to implement levels as the free version, it shouldn’t be too hard to implement. Just a quick look at the S2 documentation shows that we could use this: $s2member_access_level = get_user_field ("s2member_access_level"); in our espresso_s2member_level function. The only thing I don’t see is how to fetch the current maximum membership level. If you can arrange for us to get access to your site to test using the paid version of S2, then I’m sure we can figure that part out. |
|
The maximum number of available levels is set with a single line in the wp-config.php file. Here’s the line (in my case, to set a maximum of 25 levels): Is this sufficient information, or do you still need site access (which I would need to do via private email, not on this forum)? |
|
You can use the form here. Please include ftp credentials. I’ll get started making the code changes and when I get the credentials, I’ll put the modified version up on your site. Thanks. |
Sidney’s work on this has been released in version 1.1.b of the S2member integration plugin. |
|
|
Version 1.1.b does the trick. My 25 s2Member levels show up in the dropdown menu on the Member Settings panel, and the setting works in restricting who is eligible for a discount on the event. Thanks much for the fix. |
The support post ‘s2Member Integration Needs to Accommodate More Levels’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.