Support

Home Forums Event Espresso Premium Registration for Multiple Attendees at Once

Registration for Multiple Attendees at Once

Posted: February 20, 2016 at 1:42 pm


scladmin

February 20, 2016 at 1:42 pm

Hi,

I’m encountering an issue similar to this one.

We are using EE for conference registration for an organization which also has membership (and we have both a member price and a non-member price). Since we’re working with educators, it’s pretty typical for a principal or administrator to register multiple attendees for the conference. So far, everything has been working very well for us, but we’ve run into a problem involving integration with the WP-User add-on (which we need in order to enforce the member-only price).

When someone tries to register their attendees for the conference, the system stops them if the teachers are already members of the site (which is FREQUENTLY the case). We get this error:

“An error has occurred:
You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.”

We need to be able to bypass this error. I see two paths forward:

1) The ideal solution (mentioned in the post I linked to) would be that if the ticket for additional attendees require login, then email should match with user accounts on the site, otherwise additional attendees can have only non-member price. If non-member price is used, them email should not be checked and matched with accounts in system”. The previous answer mentioned custom development to make this happen. Could you tell me who we should contact about custom development?

2) As a stopgap, we need a way to disable this check. Is there any easy way to do this? I don’t really want to go mucking around in the EE code, but this is going to prevent our attendees from registering if we don’t fix this.

Thanks!


scladmin

February 20, 2016 at 1:48 pm

Looking in the code, I wonder if we could get #2 by simply modifying the following:

if ( is_user_logged_in() ) {
$current_user = get_userdata( get_current_user_id() );
if ( $current_user->user_email == $user->user_email ) {
continue;
} else {
$error_message = '<p>' . __( 'You have entered an email address that matches an existing user account in our system. You can only submit registrations for your own account or for a person that does not exist in the system. Please use a different email address.', 'event_espresso' ) . '</p>';
$stop_processing = true;

(This is from eea-wp-user-integration/EED_WP_Users_SPCO.module.php)

Would changing the error message slightly and changing $stop_processing = true; to $stop_processing = false; accomplish what we need?


Lorenzo Orlando Caum

  • Support Staff

February 21, 2016 at 5:48 pm

Hello,

Please try this filter in a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) to turn off the email check:

https://gist.github.com/joshfeck/1131145859a3fab58f4d


Lorenzo

The support post ‘Registration for Multiple Attendees at Once’ 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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Lorenzo Orlando Caum 3 years, 8 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!