Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114 Force user to login before registering for a class | Event Espresso - Staging Server
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.