Posted: March 14, 2016 at 1:03 am
I am enforcing users to login to register for events, but there is another issue that arises. This takes care of “Email Matching” for the Primary Registrants (also added to functions.php: https://gist.github.com/joshfeck/1131145859a3fab58f4d) This check, however, does not work for additional registrants and there is still an issue for anyone who is are already registered with an existing email address in the system. I’d like to remove those email checks completely for ALL registrants. Here is the scenario: User 1 registers and purchases a ticket for Event A. User 1 & User 2 are friends. User 1 & User 2 decide to go to Event C together. User 1 agrees to buy User 2 a ticket. User 1 must fill out the form for *Questions for Additional Registrants* In this section, “Primary Information” is selected and they must fill out the required fields: User 1 selects 2 tickets for Event C and puts in their email address along with User 2’s email address. This creates an issue for User 1 to buy a ticket for User 2. This is the message they receive– An error has occurred: How can I fix this issue so that User 1 can buy a ticket for User 2, even if User 2 already has an email address that is already in the system? |
|
Hi kellyjo, You can achieve this by removing the part of the code where it checks whether they are logged in. So this:
becomes:
Along with that, you may want to disable the Always sync contact information with WP user profile? setting 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. |
|
Hey Josh, This code is already in functions.php. I have already tried it and even tried messing with it so it will always return false. I tried disabling the sync too. I need customers to be able to buy a ticket for their friends, who may have already signed up for the website at an earlier date. When I try to sign up someone who already has an existing email in the system, an error pops up. I’m already using the code you provided, but this code seems to be getting ignored when it comes to additional attendees. I need help to bypass the checking of additional attendee emails. Why does EE4 care if they are in the system or not? Whether they are in the system or not, EE4 shouldn’t care either way. |
|
The code you gave me should work, Josh, but for additional attendees, it is getting ignored. I was able to find a workaround for this. The code is in EED_WP_Users_SPCO.module.php.
On line 387: I commented this line out. And I added:
|
|
Hi there, You’ll lose your modification the next time you update. If the filter function isn’t working when it loads from functions.php, it might be loading too late. In which case loading it from another plugin will help. re:
It turns out that the part of the WP User Integration that checks to see if there is already a registered user with that email was requested by other customers. The idea was to keep the data between attendees and user accounts in sync. |
|
I will try to put it directly into my functions.php file then Josh. I definitely had that concern of the plugin updating, than I would have to redo it. I appreciate your help. I’ll leave this for thread alone for another few weeks for testing purposes and then mark it as resolved once I see there are no issues. |
|
The support post ‘Additional Attendee Email Already Exists’ 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.