Posted: February 5, 2014 at 11:15 pm
|
I have s2member and the members plugin. 1. With either option (Member Settings>Member only event checked or Require login for all events=yes), is there anyway to let users see the event description before forcing them login or register? The same goes for brand new visitors – they’d have to register before they can even view the event. 2. There doesn’t seem to be any checks in place if a higher level member can choose to pay at lower level of membership and vice versa (from the drop down). My thinking was that if s2 has a user at level 3, then they’d only get that discount option at checkout. Where do the checks come into play with members paying according to their subscribed role? |
Hi there, With #1, it’s possible, but it involves making some modifications to the registration_page.php template. If you look near the bottom of it, there’s a check for whether members is installed, user is logged in, and whether it’s a member-only event. Right after that and right before the event_espresso_user_login(); function is called you could add something like this to show the description right before the log in form: if ($display_desc == "Y") { //Show the description or not ?> <div class="event_description clearfix"> <p class="section-title"> <?php _e('Description:', 'event_espresso') ?> </p> <?php echo espresso_format_content($event_desc); //Code to show the actual description. </div> <?php }//End display description With #2, the members plugin does not out of the box support S2 membership levels. There’s an add-on that’s available in the pre-release channel (S2 integration) that can be used to restrict discounts to higher level memberships. Here’s a link to the documentation: |
|
|
For #2, I already have the s2member integration addon installed. To be more clear, the addon does work where only members set at the threshold see the discounted price, but they see all discounted prices not just the “one” that applies to them. For example, my level 3 member can choose to pay at level 3 or 4 as it stands. I’d like the level 3 to only see level 3 pricing and my level 4 member to only see level 4 pricing. Please advise. |
|
For #1, I’m getting a syntax error: Parse error: syntax error, unexpected ‘<‘ in /home4/forlisa/public_html/womenscyberjutsu.org/wp-content/plugins/event-espresso/templates/registration_page.php on line 267 |
HI, In regards to the syntax error, it looks like the code Josh posted above is missing a PHP closing tag (screenshot: http://www.screencast.com/t/AdSelvXg9cNR). |
|
|
It presented a different syntax error: Parse error: syntax error, unexpected T_ELSE in /home4/forlisa/public_html/womenscyberjutsu.org/wp-content/plugins/event-espresso/templates/registration_page.php on line 280 |
|
Hi, You’re missing a curly bracket on line 269 in the image you posted (isn’t code wonderful?) It should look like this http://pastebin.com/4NmHGbtp |
|
Hi the code for #1 is good to go. Can you assist with #2? The way it is now, I could have a free member pay the lower price because they can see the other price and no checks are being done to verify they’re paying for the right level. I’ll purchase support if need be. Planning to launch our new site Monday. |
|
The S2 members add-on only allows you to raise the threshold for receiving the member discount above just being logged in (what the regular members add-on does). But it is still an on or off state. They will either receive the members discount or not. There is not support in it for more than those two levels of pricing. Are you seeing non-members pricing on a logged in user with level greater than the threshold level you have set? |
|
I have 4 membership levels and 3 different prices So the threshold is set at 3 – all that is working. 3/4’s see two options for $35 in the dropdown. The issue is my 0 can see 2 pricing and vice versa, so whats to stop the 0 from selecting 2’s price and checking out? If this is a limitation of the addon and can’t be done, can you suggest a solution? Thanks |
|
It is a limitation of the add-on. Probably the easiest (cheapest) way to do it would be to use the post-save-attendee hook to bounce the attendee out if they choose the wrong price level. The slicker approach would be to do some rewriting of the members add-on to present the appropriate price based on their S2 level. We do have a list of recommended developers here. |
The support post ‘s2member not restricting at checkout’ 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.