Support

Home Forums Event Espresso Premium Error during checkout for an existing user

Error during checkout for an existing user

Posted: September 28, 2016 at 1:40 am

Viewing 1 reply thread


Oguzhan Altun

September 28, 2016 at 1:40 am

Hello,

One of my users reported this error during the checkout while trying to submit Personal Information. How can I allow existing emails to continue with their checkout without this error? I had the following code to prevent this error, but maybe it doesn’t work any more with the new EE4 version?

ERROR MESSAGE:
“An error has occurred:
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.”

CODE:

//* Disable email match forced login - EE4 WP User Integration

add_filter( 'EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check', 'jf_ee_wp_users_remove_email_user_match_check' );
function jf_ee_wp_users_remove_email_user_match_check() {
    if ( ! is_user_logged_in() ) {
        return false;        
    } else {
        return true;
    }
}


Josh

  • Support Staff

September 28, 2016 at 8:04 am

Hi Oguzhan,

The code actually only prevents the message if they’re logged out. It does not prevent the logged in user from seeing the message. If you want to suppress the email match check for a user that’s logged in and using someone else’s email address that belongs to another account, you can use this code instead:

add_filter( 'EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check', '__return_false' );

If you implement the above change, you may want to disable the Always sync contact information with WP user profile? in Event Espresso > Registration Form > User Integration Settings. This will help avoid any issues where the individual registering for a group could unintentionally update another’s contact record to have incorrect information.

Viewing 1 reply thread

The support post ‘Error during checkout for an existing user’ 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