Support

Home Forums Event Espresso Premium Possible to list tickets with description & quantity available?

Possible to list tickets with description & quantity available?

Posted: July 22, 2015 at 8:23 am


HopFamilies

July 22, 2015 at 8:23 am

I’m using EE for a homeschool co-op; each ticket represents a class. I’m wondering if it’s possible to display the number of available tickets, along with the ticket description? Like this – see the ‘slots filled’ numbers? Thanks!


Lorenzo Orlando Caum

  • Support Staff

July 22, 2015 at 11:10 am

Hi, I have some sample code that will show the remaining datetimes in the ticket selector (https://gist.github.com/lorenzocaum/74ebc1ce4ed43761096c). I also have one that will show the ticket description.

The issue is that the presentation of the information will be different.

Generally speaking, will you be creating an event for each ticket option?

If so, then you could add the information to the event description area and then use this:

https://gist.github.com/lorenzocaum/74ebc1ce4ed43761096c


Lorenzo


HopFamilies

July 22, 2015 at 5:15 pm

In our case, each ‘event’ as a semester of classes and each ‘ticket represents a class. So we would always have an event with a whole list of classes.

It would be nice to show the seats available in the ticket selector but is there any way to list the tickets in an event, the description and seats remaining outside of the selector?


HopFamilies

July 23, 2015 at 12:06 pm

Regarding the gist: /wp-content/plugins/eea-events-table-view-template/templates does not exist in my install. My main EE plugin folder is /wp-content/plugins/event-espresso-core-reg.


Lorenzo Orlando Caum

  • Support Staff

July 23, 2015 at 5:26 pm

Hi, that link was for showing remaining datetimes on the Events Table View Template. I meant to share this one:

https://gist.github.com/joshfeck/0e2e59c39a36b76cc65a3b92f9543c79

Here is a preview:

http://cl.ly/image/0W273W2Z0K3q

Thanks


Lorenzo


HopFamilies

July 24, 2015 at 8:41 am

Perfect, thanks. FYI there’s a typo in the filename of the second link – it has a period in the middle instead of underline.


HopFamilies

July 24, 2015 at 8:48 am

Anyway to change ‘INF’ to something like ‘N/A’?


HopFamilies

July 27, 2015 at 7:25 am

Still waiting on a resolution for it showing ‘INF’ instead of ‘0’ or not available. ‘INF’ doesn’t say much to a registrant.


HopFamilies

July 28, 2015 at 6:00 am

Do you have a solution for showing ‘0’ if all tickets are sold instead of ‘INF’?


Josh

  • Support Staff

July 28, 2015 at 9:52 am

Hi there,

It turns out INF means there is not a set limit for that ticket. If you do not set a limit, the system recognizes this as “unlimited”.

Here’s a suggested change to Lorenzo’s template modification that will print “No limit” for tickets that don’t have a limit set:

Around line 147 you’ll find this:

<?php echo $remaining; ?>

You can change it to read something like:

<?php echo $remaining === INF ? '<span>' . 'no limit' . '</span>' : $remaining; ?>

Nice catch on the typo, btw. I left a note for Lorenzo and asked him to fix the filenames so they match.


HopFamilies

July 28, 2015 at 12:49 pm

Ah – I was incorrect about one aspect. I have listed a class that has 0 tickets available. That’s probably why it’s showing INF. I should probably just remove that class entirely since no one can register for it anyway.


Josh

  • Support Staff

July 28, 2015 at 1:48 pm

If you try to input a 0 for tickets available, the 0 will get wiped out, leaving a blank field, because the Ticket editor will not allow 0 for a max quantity limit. So the INF you saw actually means unlimited.


HopFamilies

July 29, 2015 at 10:45 am

Ok – this was my fault then. Thanks for clarifying.

The support post ‘Possible to list tickets with description & quantity available?’ 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