I am building a class sign-up site for a client. In this site, users can sign up for classes either all at once (ie: add to cart) or during each subsequent site visit. Since I do not want user to have to reenter this info, I would like to add them as site users and then make them login before allowing them to register for a class. This approach would limit how many times they need to enter personal information and (in my estimation) is a lot cleaner. I am using WP-Members for the initial creation of a New User Registration form which will contain all the relevant fields I need to collect from the users (ie: user id, password, age, etc). I have this part working fine.
What I am looking for some help with is the next part: How can I prevent them from registering for a specific class or adding a class to their cart unless they are already logged in? I want them to be logged in so EE will bring up their registration info automatically. I know WP-Members can block pages/posts unless a user is logged in, but I am not looking to block the Event Listing content, since I want users to see the details, just not actually sign up before they log in. Any ideas on how this can be achieved?
There isn’t a simple solution out of the box. However, I can think of a couple things you can try.
1. Go to Member Settings and require log in for all events. This will then redirect them back to the event registration. If you are wanting them to be able to add multiple events to the cart, you might want to give them a link on the registration page back to the event list.
2. The other option I can think of is use the shortcode [EVENT_LIST] on a page and require login for that page in order to view the events. Note: You’ll need to make sure that the page with [ESPRESSO_EVENTS] is not password restricted. It can be removed from the navigation menu though.
Hope this helps.
Viewing 1 reply thread
The support post ‘Force user to login before registering for a class’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.