Support

Home Forums Event Espresso Premium List shows more than sold?

List shows more than sold?

Posted: March 7, 2024 at 8:17 pm

Viewing 9 reply threads


Allen

March 7, 2024 at 8:17 pm

We have an event split into two divisions (we use “tickets” as entry fees into tournaments).

The backend is set to allow 64 in each division.

(at time of posting, it shows 56 and 37)

On the front-end, the website is showing more than enrolled (at time of posting, it shows 61 and 42) – at this page here: https://superbilliardsexpo.com/events/juniors2024/

Seems like it is showing 5 more in each division. Any idea what could be going on here?


Rio

  • Support Staff

March 7, 2024 at 9:00 pm

did you had any test purchase on those ticket that is still in there? May we know why you didn’t update your EE plugin?

Can you send screenshot of this part?

On the front-end, the website is showing more than enrolled (at time of posting, it shows 61 and 42) – at this page here:

thanks


Allen

March 8, 2024 at 5:07 pm

This reply has been marked as private.


Allen

March 11, 2024 at 1:47 pm

I’ve been waiting 3 days now. Can anyone help? Why does front-end show more than actually enrolled?


Allen

March 11, 2024 at 1:49 pm

This is the shortcode I have used:
[ESPRESSO_EVENT_ATTENDEES ticket_id=185]


Rio

  • Support Staff

March 11, 2024 at 6:13 pm

This reply has been marked as private.


Allen

March 11, 2024 at 8:54 pm

We use “tickets” as entry into a pool tournament.

I have set 64 tickets for each division of the Juniors event. The backend only shows 64 sold (max) for the Juniors 17 Division and 40 sold for the 12&Under Division.

The front end shows more than that, and many duplicates. Any idea why?

No other event is doing this. But, not other event has multiple tickets per event – so maybe there is a correlation?


Tony

  • Support Staff

March 12, 2024 at 6:20 pm

Hi Allen,

Can you please update the account to be an admin account so we can view the event/registrations.

Currently, I don’t think this relates to the event having multiple tickets but I need to see the registrations to see what stands out there.

Have registrations been ‘moved’ at all? Cancellations? Registrations started and then not finished, then the user returns and starts another?

The output on the page is slightly different than our default output, I assume you are using your own template file for [ESPRESSO_EVENT_ATTENDEES]? (I don’t think that will be causing this but just working through everything I’m noticing to try and narrow this down a little).


Allen

March 13, 2024 at 8:21 am

Hi Tony, I have updated to Admin. I thought “Editor” was high enough clearance, sorry. I dont belive anything unusual was done (no moving, cancelling,etc) … I don’t know if someone started a registration and returned to finish another, I would have no way on knowing that.

We do occassionally process cancellations and refunds – but nothing different in this event than any other, and nothing different this year than previous years.

And yes, at some point I edited the Template File (years ago) … I don’t really recall exactly what I did, I’m sure I spent time learning on your site and asking questions to do that

Thanks!


Tony

  • Support Staff

March 13, 2024 at 8:57 am

No problem 🙂

So, it actually is due to the modifications made to the templates.

[ESPRESSO_EVENT_ATTENDEES] outputs all of the Attendee, aka the EE_Contacts. So as a person I can register onto say 4 tickets and the Attendee is the same for all of them (me). So we output 1 record there, the contact, so it would show just a single ‘Tony Warwick’ in the attnede list as opposed to 4 in the above example.

Your modifications pull in all of the registrations linked to a contact and output those to the page.

So [ESPRESSO_EVENT_ATTENDEES] is pulling in the contacts linked to the ticket, then your query uses the contact to pull in all of the registrations linked to that event and output those.

You’ve linked to the page and this info is all public on your site, so here’s an example.

Johnny Hammontree has 2 registrations, one for 17 & Under and another for 12 & Under. Same contact, 2 registrations. You modification pulls in both so adds the attendee list number.

To fix you need to pass the ticket ID (if set) to your registration query. In your child theme you have content-espresso_event_attendees.php, there you have this:


$registrations = EEM_Registration::instance()->get_all(array(
array(
'STS_ID' => 'RAP',
'ATT_ID' => $contact->ID(),
'EVT_ID' => $event->ID()
),
));

I would switch to something like this:


// Set up where conditions
$where = [
	'STS_ID' => 'RAP',
	'ATT_ID' => $contact->ID(),
	'EVT_ID' => $event->ID()
];
// If a ticket ID was set, we will have been passed the ticket
if ($ticket instanceof EE_Ticket) {
	$where['TKT_ID'] = $ticket->ID();
}
$registrations = EEM_Registration::instance()->get_all(array($where));

Note – the above is untested, if you are going to use it on the site make sure you have FTP access and not just using the built in file editor (one mistake and you won’t have access to fix it).

You could also use datetime:

if ($datetime instanceof EE_Datetime) {
	$where['Ticket.Datetime.DTT_ID']  = $datetime->ID();
}
Viewing 9 reply threads

The support post ‘List shows more than sold?’ 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