Support

Home Forums Event Espresso Premium EE_Attendee_ID in usermeta table

EE_Attendee_ID in usermeta table

Posted: April 3, 2017 at 10:15 am

Viewing 7 reply threads


RolandK

April 3, 2017 at 10:15 am

Hello,
WP: 4.7.3
EE: 4.9.31.p

I noticed that when a registration is complete the EE_Attendee_ID is added in usersmeta table for that specific WP subscriber.

So this key: EE_Attendee_ID I use for checking if a WP Subscriber has completed a event registration. Because only one time registration is allowed for each subscriber.

Checking simply like this:

$user_id = get_current_user_id();
$meta_key = ‘wp_EE_Attendee_ID’;
$single = true;

$has_EE_id = get_user_meta($user_id, $meta_key, $single);

if ( $has_EE_id == ” ) {
return false;
} else {
return true;
}

During testing with the registration I filled in another e-mailaddress.
That e-mailaddress was already used by another Subscriber. There was an correct warning about this.

But when I changed the e-mailaddress back to its origin, the checkout went good but no EE_Attendee_ID was added to usermeta table for that specific WP Subsciber.

Is this a bug or something else?
What can I do about this because now my code above isn’t working properly anymore.

Thanks,
Roland


Tony

  • Support Staff

April 4, 2017 at 6:08 am

But when I changed the e-mailaddress back to its origin,

What do mean by changing it back to its origin?

the checkout went good but no EE_Attendee_ID was added to usermeta table for that specific WP Subsciber

Did EE create the subscriber during the registration or was the account already created on the site and you entered the details to match?

By details I am referring to First Name, Last Name and Email address questions within Personal Information, not just the matching email address but all 3.

If you go to Event Espresso -> Registration Form -> User integration Settings

What do you have set for ‘Always sync contact information with WP user profile?’


RolandK

April 6, 2017 at 12:17 am

Thanks for the reply!

Yes indeed, I mean to its origin is the mail address during registration.
The account (Firstname, Lastname, e-mailaddres) was already created on the site before the registration.

The subscribers must have the ability to change the e-mail address if they want to receive the EE registration/Ticket on another e-mail address.

The Option: Always sync contact information with WP user profile is: No

Thanks,
Roland


Tony

  • Support Staff

April 6, 2017 at 2:20 am

The Option: Always sync contact information with WP user profile is: No

With that option set to No if the user inputs details for the first name, last name and email address that don’t match the WP user profile they are using the registration will not link to their profile.

With that option set to yes the user can input any details they want and the registration will link to their account but it will also update the WP User profile to match those details.

So it sounds like the your registering onto an event with details that don’t match their user profile?


RolandK

April 7, 2017 at 12:03 pm

I think your right Tony. I changed this option to: Yes
This message showed up: Registration is currently turned off for your site, so the registration link will not show. If you want the registration link to show please go here to turn it on.

It’s all private here so we don’t want others to registrate for the event or even see the content of the site. All subscribers are imported thru a CSV file.

No problem that message I guess?


Tony

  • Support Staff

April 10, 2017 at 4:31 am

No, that’s no problem.

Its just a warning in-case the admin is unaware that registrations are closed on the site and are expecting the WP user registration links to show for users to register.


RolandK

April 11, 2017 at 4:54 am

Hi Tony,

While testing during registration with:
Always sync contact information with WP user profile is: YES | (WP Users (EE4.6+))

I changed the Lastname and E-mail for an already registrated WP subscriber during registration for an event.
The Lastname is changed in WP Profile but the E-mailaddress is not.

The registration in EE in Contact List is showing the new E-mailaddress so that’s good.

The message approved registration is send to the new filled in E-mailaddres so that’s also good!

But why is the WP Profile for that subscriber not updated with the new filled e-mailaddress?

Thanks,
Roland


Tony

  • Support Staff

April 12, 2017 at 4:13 am

Hi Roland,

My apologies I should have clarified that above, the email address will not update.

The ‘Nickname’, display name, first name & last name update to match the registration, the email remains constant as it can be used to log into the site so EE will not change it.

There is a filter available within the WP user add-on that you can use to update the user account yourself with further details if required although I don’t recommend updating the email address.

Take a look at the AHEE__EED_WP_Users_SPCO__process_wpuser_for_attendee__user_user_updated action within EED_WP_Users_SPCO.module.php

Viewing 7 reply threads

The support post ‘EE_Attendee_ID in usermeta table’ 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