Support

Home Forums Event Espresso Premium My Events – not all registrations are showing

My Events – not all registrations are showing

Posted: October 4, 2018 at 12:00 pm


sogtalks@gmail.com

October 4, 2018 at 12:00 pm

User Registrations are not being included/displayed consistently.

In the page=espresso_registrations all appropriate registrations are displayed as expected.

In the WP user page they are not.

In the My Account page (custom version) they are not. We are using the shortcode [ESPRESSO_MY_EVENTS template=simple_list_table your_events_title=”My SOGTalk Registrations”]

See user example https://www.screencast.com/t/dpQ7bfkKwqqi same user (hidden)

This issue happens inconsistently across users. In some cases it works as expected across all pages. I would say it works as expected < 50% of users.

Site : https://bit.ly/2IDv0Sx

What am I doing wrong?

Thank you.


Tony

  • Support Staff

October 4, 2018 at 12:24 pm

The My Events section shows all of the registrations assigned to the EE_Contact linked to the user’s profile.

In short that means that it shows all registrations that (when created in EE) matched the details (First name, last name and email address) used for the contact in the registration form.

So on the example you provided above, are all of the registrations made under the same name?

Click on the ‘Edit Contact details’ (the person with the pencil – http://take.ms/h4VZd) icon in the actions section for each of those registrations (I recommend opening them in a new tab so you can switch back to the list easily).

The link will have &post=XX for each of them, are they all the same number? For example – http://take.ms/RBkKq
(There’s other ways to get this info, but this is the quickest/easiest to link everything together)


sogtalks@gmail.com

October 4, 2018 at 5:03 pm

I checked as suggested and all four are the same user with identical information but on the first event, the one that shows everywhere has the Contact information with WordPress User Profile connected to it. See https://bit.ly/2pzPWB5.

The post numbers are different, two, the WordPress User profile is unique. So now I understand why we get the results we get but don’t understand how it is happening?

We also use Paid Membership Pro

For User Integration settings we force login.


Tony

  • Support Staff

October 8, 2018 at 8:55 am

I’m not sure why you have multiple contacts if they are all using the exact details.

Is the registrant in question the primary registrant for all the registrations?

Do you see any differences at all in the First name, Last name or email address of those contacts? The strings must match exactly.


sogtalks@gmail.com

October 8, 2018 at 2:53 pm

Tony,

The registrant in question is the primary registrant for all the registrations.

I downloaded all registrations and looked the Attendee ID[ATT_ID], could you please explain how that ID is generated. These ID do not match the ID#s for the WP users and each of the users in question only have 1 WP User account. In the registration details that you had me look at the user contact info did have different created dates though.

In our scenario the users are members who pay a yearly membership fee (PMP Pro) and then we offer Free tickets for active members which act as registration for upcoming events. After each event a Certificate of Attendance (C of A) is available in the My Events section based on checkin, we need all of the C of A’s to be in one account page. The users /active members may change their name/email, is this going to be a problem?

Can I change the Attendee ID[ATT_ID] is the database?

Thank you.


Josh

  • Support Staff

October 8, 2018 at 3:07 pm

could you please explain how that ID is generated

The Attendee ID is the post ID in the wp_posts table, which is auto-incremented. In other words, if the last post added to wp_posts was ID 123456, and a new attendee is added, the Attendee ID will be 123457.

Changing the Attendee ID will not help (it will probably break other things, too). What you could do is manually sync a WP user ID to an Attendee ID by following this guide:
https://gist.github.com/joshfeck/2165ff295c968f861cef8775fc8b1dc9


sogtalks@gmail.com

October 8, 2018 at 6:09 pm

Hmmm. How do I create a list of events attended by WP User ID?


Josh

  • Support Staff

October 8, 2018 at 6:54 pm

It might help if you can elaborate. Assuming you’re doing some custom coding, you’d build a query that would JOIN across several tables, specifically for attendance that would involve reading data from the esp_checkin table. You will still need to use the attendee ID because the registrations are linked to the attendee ID, then the attendee ID is linked to the WP User table via that meta key/value stored in _usermeta.


sogtalks@gmail.com

October 9, 2018 at 8:57 am

On a custom account page we use
[ESPRESSO_MY_EVENTS template=simple_list_table your_events_title=”some title”] to generate this: Sample Events Lists.

  • This list is not complete and only lists events connected to the WordPress User Profile ID.
  • It appears that if any change in the contact has occurred then a new ATTENDEE ID is generated and is not connected to the WordPress User Profile ID and therefore will not be listed.
  • It is reasonable to expect that users may edit their user info.

How can I list all events associated with a user?

Thank you.


Tony

  • Support Staff

October 9, 2018 at 9:45 am

The only way registrations are linked to the WP User account is through the EE_Contact record so what you are asking to do, is exactly what the add-on does, it lists the registrations assigned to the WP User account. If registrations currently aren’t listed then they are not linked to the WP User through the contact, so we can’t give you another method to pull those registrations.

This list is not complete and only lists events connected to the WordPress User Profile ID.

It is a complete list of registrations connected to the WP User profile, as shown in your screenshots the other registrations are not linked to it, so don’t show.

It appears that if any change in the contact has occurred then a new ATTENDEE ID is generated and is not connected to the WordPress User Profile ID and therefore will not be listed.

Correct, so is that why the additional contacts were created on your site? The user changed their contact details?

It is reasonable to expect that users may edit their user info.

Sure it is, and we have a feature to sync any changes the user makes during the registration to both the EE_Contact and to the WP User account linked to it. So for example my WP user account name is ‘Tony Warwick’, if I used the name ‘Anthony Warwick’ during a registration my EE_Contact and WP User account would be updated to use those details and keep everything in sync.

It’s the ‘Always sync contact information with WP user profile?’ option explained here: https://eventespresso.com/wiki/wp-user-integration/#ee4setup

Not that the above means that all registrations used with that same account will show whichever registration details where entered on the last registration made with that account.


sogtalks@gmail.com

October 10, 2018 at 10:25 am

As usual, user error. The Always sync contact information with WP user profile? option wasn’t selected and I believed it was, couldn’t find it to confirm. So if no changes have been made in a users contact info then the WP Profile account will be used.

What can I do about the accounts where say an email address was changed and EE now uses the attendee contact info. Is there any way to sync after the fact?

Thanks for your help.


Tony

  • Support Staff

October 11, 2018 at 9:20 am

So if no changes have been made in a users contact info then the WP Profile account will be used.

On the registration form? The first name, last name and email address fields should be auto-filled, so if they didn’t change those during the registration it should be linked to the EE_Contact.

With the above option enabled, EE will automatically update the fields on the user (and contact) and keep them connected regardless of what changes the user makes on the registration form.

What can I do about the accounts where say an email address was changed and EE now uses the attendee contact info. Is there any way to sync after the fact?

To confirm, did the user change the email address on the EE registration form or in their WP User profile?

How many registrations are you looking at in this situation?

I have a snippet that adds a field to the edit registration page that allows you to update the att_ID field on the registration itself (meaning you can set the registration to link to another contact) that I can send you if they will help?

Its basically doing the same as what Josh’s gist is, only its available within the registration form itself.

The support post ‘My Events – not all registrations are showing’ 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