Support

Home Forums Event Espresso Premium incorrect number of tickets in my list

incorrect number of tickets in my list

Posted: January 18, 2019 at 3:54 am

Viewing 3 reply threads


J Baalbergen

January 18, 2019 at 3:54 am

There seems to be another problem in addition to this ticket:

Someone ordered 3 tickets which are unpaid and 3 tickets which are paid. The list now shows 6. What code do I need to only show the completed orders?

Kind regards, Jolanda


Tony

  • Support Staff

January 18, 2019 at 10:33 am

You can add 'STS_ID' => EEM_Registration::status_id_approved, to array used to pull the primary registrations, so it would looke like this:

array(
	'STS_ID' => EEM_Registration::status_id_approved,
	'EVT_ID' => $event->ID(),
	'REG_count' => 1
)

Not that with the way that template works, if you have 2 groups of registrations, using your example of 2 groups of 3, if the primary registrant is approved for both of those groups, the above will still show 6.

So say your first group are all Approved, thats 3 approved registrations.

The second group, the primary registrant is approved, but the other 2 in the group are (for whatever reason) set to ‘Pending Payment’, the list would still show 6.

However, under ‘normal’ circumstances that shouldn’t be a problem.


J Baalbergen

January 20, 2019 at 9:13 am

Hi Tony,
YES! This works fine. Thank you very much.
Kind regards,
Jolanda


Tony

  • Support Staff

January 21, 2019 at 2:21 am

You’re most welcome.

Viewing 3 reply threads

The support post ‘incorrect number of tickets in my 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