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
Registration Details | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Registration Details

Registration Details

Posted: December 2, 2013 at 12:16 pm

Viewing 5 reply threads


Tony

December 2, 2013 at 12:16 pm

I’m wondering if there is a way to have the details of the course/event show but require the user to login before registration can happen. I would like people to be able to view all the details of all the courses/events but want everyone to have to create an account or login to register. What I’ve run into is if I check “Member only”, if not logged in, they cannot see the information. Is there a way to have the details displayed and then a register button that has them either login or create an account to register?

We want users to have an account before registering but would like people to be able to view the course details and outline before registering (and not have to be logged in).

Thank you.


Dean

  • Support Staff

December 3, 2013 at 2:17 am

Hi Tony,

It is possible but requires a template change to put the details above the code that that blocks off access to the content.


Tony

December 3, 2013 at 9:29 am

Thanks, could you lead me in the direction of what template that would be? I’m looking at registration_page.php and I see “check to see if the Members plugin is installed”..and if the user is logged in event_espresso_user_login. Is it that file, which I cannot seem to find.


Tony

December 3, 2013 at 9:57 am

One other note:
I’m using the espresso_table.php for the main landing page of events. Then the user clicks through to the event single page where the details of the event are. Just in case you need that information.

Thanks


Sidney Harrell

  • Support Staff

December 3, 2013 at 1:45 pm

In registration_page.php, you would take this section:

if ( function_exists('espresso_members_installed') && espresso_members_installed() == true && !is_user_logged_in() && ($member_only == 'Y' || $member_options['member_only_all'] == 'Y') ) {
                        event_espresso_user_login();
                    } else {
                        //Serve up the registration form
						if ( empty( $path ) ) {
						  require( $template_name );
						} else {
						  require( $path );
						}
                    }

and change it to:

                        //Serve up the registration form
						if ( empty( $path ) ) {
						  require( $template_name );
						} else {
						  require( $path );
						}

then in registration_page_display.php, change line 200:

if ($display_reg_form == 'Y') {

to:

if ( function_exists('espresso_members_installed') && espresso_members_installed() == true && !is_user_logged_in() && ($member_only == 'Y' || $member_options['member_only_all'] == 'Y') ) {
                        event_espresso_user_login();
                    } else {
if ($display_reg_form == 'Y') {

and you’ll need to add the closing brace after what is now line 277:

do_action('action_hook_espresso_registration_form_bottom', $event_id, $event_meta, $all_meta);
			}
}


Tony

December 3, 2013 at 2:02 pm

Wow, THANK YOU! That did the job.

I appreciate all the fast support.

Viewing 5 reply threads

The support post ‘Registration Details’ 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 - Staging Server