Support

Home Forums WP User Integration member discounts

member discounts

Posted: June 12, 2013 at 6:17 am


Janis

June 12, 2013 at 6:17 am

Hi

I have insalled restrict content pro to manage members subscriptions – when they expire they can still log in and get member discounts on my events though (unless I delete them as a user which I would rather not do.)  I notice in one of your posts you suggest using the ‘User Control’ plugin to disable the users.

Ideally though I would like to modify the code so that it only gives member prices if the user is logged in and active (the status is held in the usermeta table.)  I know it is not your  job to customise for me but could you point me in the direction of the files to modify – I have looked at the member_functions.php file and noted the event_espresso_get_price function.  If I modified the part where it gets the prices by checking if logged in – could I amend here to say if logged in and active?  Many thanks.


Jonathan Wilson

June 12, 2013 at 11:41 am

Hi Sue,

Modifying that file is not recommended. Really, I think the only way to do what you are wanting is to paste the [EVENT_LIST] shortcode on a page and restrict it to only users who are paid up. Then you can remove the page with the [ESPRESSO_EVENTS] shortcode from the navigation (it still needs to published and not be private or password protected).


Janis

June 13, 2013 at 6:52 am

Hi

The trouble is our events are open to non-members to sign up as well – if I make the events list page available only to paid members then I prevent other people signing up to our events at the non-member price.


Jonathan Wilson

June 13, 2013 at 12:54 pm

Okay, I think I understand. You have registered site users that are not “members” and do not get member discounts once their membership expires? If so, the only way to do this is to delete the user as you previously stated, because just demoting them to a Subscriber will still give them non-member discounts.

One of our developers has created something for the s2member plugin that will let you restrict the members price to level 2, so you can have unpaid level 1 members who can’t get the member’s price. This only works with the s2member plugin though.


Garth

  • Support Staff

June 13, 2013 at 1:00 pm

The WP Users Integration (https://eventespresso.com/product/espresso-members/) add-on will allow you to restrict event registration to only logged-in users. That might help you but it might not take into account whether the user is “active” or not.


Janis

June 14, 2013 at 1:27 am

Hi Jonathan – thanks for persevering with this.  I think I’ve confused you and now I’m confused as to whether the S2 will work.  So I’ll try to give a better explanation:

The event listing pages I am creating on our site are not restriced in any way so you could go to the site (if yoga is your thing!) and register for a weekend of yoga – paying the full price.

I am then going to have a whole bunch of wordpress users (who are ‘subscribers’ to wordpress) and to restrict content pro with my membership levels are either general, teaching or student teacher members.  All these membership levels are paid (we offer no free memberships) – if I set up an event with a member price they all get the same discount and they all have the same access to the members pages of our site.  (These member pages are information not connected in any way to events.)  The membership levels have different costs though as there are benefits of membership not tracked or connected in any way with the website.

My members only pages are protected – to be available only to paid members, so when a persons subscription expires they can’t view these pages – however they can still log in if I don’t delete or disable their account.  And I want to keep their details and get them to log in to renew their subscription.

As event espresso  works on defining a ‘member’ as anyone who is in my wordpress users table – then obviously unless I disable or delete a user from that table they will keep on getting a member discount on events if they log in.

So, finally she gets there, are you saying with S2 that all my members would have to be level 2 (no distinction between general, teacher and student) and come their expiration I would manually have to bump them down to level 1 if they don’t renew?  And that this level 1 would have to be a non-fee paying membership as far as s2 is concerned?

Many thanks.


Sidney Harrell

June 14, 2013 at 12:06 pm

Hey Sue,
The modification to the EE members add-on that I worked up lets you restrict the members price discount to a minimum membership level that you can set in the admin (on the EE members options screen). So you can set the threshold level to 2, and anyone with level 1 would not get the discount, and anyone with level 2, 3, or 4 would get the discount. Hope that helps.
I haven’t looked at “Restrict Content Pro” to see how it works. The S2 plugin uses user capabilities, and that’s how the EE members modification for S2 knows what level the member has. If you would like to send in admin level login credentials to your site, I can take a quick look and let you know if it would be easy to do a similar modification for Restrict Content Pro. Use the form here: https://eventespresso.com/send-login-details/

The support post ‘member discounts’ 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.

Event Espresso