Support

Home Forums Event Espresso Premium Show tickets left counter in Overview

Show tickets left counter in Overview

Posted: August 4, 2021 at 9:38 am


simonre

August 4, 2021 at 9:38 am

Hey Folks,

my customer just told me, that they would like to show the tickets left already in the overview. I’m using the shortcode to display the events of a category on the page. Additionally to the event title and “book now” button I want to show a count with the information how many tickets are there.

I guess its again something where I need to write custom code but maybe you can tell me if there is already something I can use or if it possible at all.

Thanks!
Simon


Tony

  • Support Staff

August 4, 2021 at 2:35 pm

Hi Simon,

Yes, you’ll need custom code for this but there is an example which may help point you in the right direction here:

https://gist.github.com/joshfeck/c7fb0043e2bbe9bb3619

Is that what you are looking for?


simonre

August 5, 2021 at 12:31 am

Hey Tony!

Yes this is the right direction. Is there any way to get the result of this shortcode into the list which I embed into my page? If I click on “Sign up” to get to the detail page, there now is a counter, that’s nice. Having it already in the list which I embed in my article with the event-espresso shortcode would be amazing.


Tony

  • Support Staff

August 5, 2021 at 1:18 pm

Which shortcode are you using? [ESPRESSO_EVENTS]?

If so, the first snippet hooks into the ticket selector so you would need to enable the ticket selector on your event list for that to work.

Event Espresso -> Events -> Templates -> Event List Pages

Set Display Ticket Selector to Yes.

The second snippet uses the datetimes so they need to display, same section but set ‘Display Datetimes’ to Yes.


Hazel Apuhin

August 6, 2021 at 5:05 pm

Hi,

I hope all is well.

I can see that you have not replied to the last message. Are you all set now?

If you need anything please let us know.

The support post ‘Show tickets left counter in Overview’ 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