Support

Home Forums Event Espresso Premium Frontend Attendees Registrations List

Frontend Attendees Registrations List

Posted: June 29, 2019 at 4:31 am

Viewing 1 reply thread


Whiskydo

June 29, 2019 at 4:31 am

Hi,
i’m searching to replicate the Registrations list that I can find in WP Backend in Frontend too. I started customizing the [ESPRESSO_EVENT_ATTENDEES] shortcodes. But I have problems with the number of attendees.

With $regs = EEM_Registration::instance()->get_all_registrations_for_attendee($contact->ID()); I can retrieve the list of registrations but if a user has 2 tickets I will not have the list of them. The count will be 1.

How can I retrieve a list of tickets as you do in the Backend Registration for event list?

Thanks


Tony

  • Support Staff

July 1, 2019 at 4:37 am

With $regs = EEM_Registration::instance()->get_all_registrations_for_attendee($contact->ID()); I can retrieve the list of registrations but if a user has 2 tickets I will not have the list of them. The count will be 1.

That’s not the case for me when I run that code, are the 2 tickets the user selected linked to the same contact? Meaning they both show the same name in the default registrations list?

That code pulls all of the registrations that are linked to the current ATT_ID you pass, which is $contact->ID() so if the user selects 2 tickets and providers the Personal Information question group for both, with different names, the ‘second’ ticket is not linked to their contact.

How can I retrieve a list of tickets as you do in the Backend Registration for event list?

The code you’ve posted above is for pulling registrations linked to a contact/EE_Attendee.

The registration list in the admin lists the registrations for the event.

There’s a big difference in how you handle those registrations, especially in the situation I mentioned above. So are you trying to pull the registrations for a specific user/contact, or an event?

Viewing 1 reply thread

The support post ‘Frontend Attendees Registrations List’ 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