Posted: 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. |
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). |
|
|
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. |
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. |
|
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. |
|
|
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. |
|
Hey Sue, |
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.