Support

Home Forums Event Espresso Premium Total amount of spaces available (multiple events)

Total amount of spaces available (multiple events)

Posted: August 30, 2018 at 12:01 pm


countyit

August 30, 2018 at 12:01 pm

Hi,

Just wondering if there is a way we can find out the TOTAL number of openings left over multiple events.

Is there an easy way to find this out?

Thanks,


Tony

  • Support Staff

August 30, 2018 at 1:07 pm

Hi there,

May I ask, I which context?

You’ll need to pull those events in, loop over them and run something like $event->spaces_remaining_for_sale(); on each only, combining the result for a total amount.

However, I’m guessing you currently don’t have a query pulling in the events to loop over?


countyit

September 11, 2018 at 5:37 am

We have multiple hikes set up through Event Espresso.

Some hikes are currently 10 registrants out of 30, 17 out of 20, etc.

We would like to see the total number of registrants currently out of total capacity.

No, we currently don’t have a query set up.


Tony

  • Support Staff

September 11, 2018 at 5:39 am

OK, can you add a screenshot of where you would like that output?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

If there is a hook available in that or a similar location I may be able to provide a snippet to do what you are looking for.


countyit

September 11, 2018 at 5:47 am

Wherever it would be easiest to add. This is just for reporting purposes and won’t be used in the front end of the website.


Tony

  • Support Staff

September 13, 2018 at 12:10 pm

So you’re looking for something like this? – http://take.ms/Cc89H

If so you can use this example:

https://gist.github.com/Pebblo/f5d95b5a04077247d3ca97f481a8468d

If not you can use the above snippet as a base to include the details you need, although you will likely need the help of a developer if you are not familiar with PHP.

The support post ‘Total amount of spaces available (multiple events)’ 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