Support

Home Forums Event Espresso Premium Event with only free ticket does not show in ticket selector

Event with only free ticket does not show in ticket selector

Posted: January 4, 2018 at 12:31 am


HIL Tennis

January 4, 2018 at 12:31 am

I have created an event where there is a ticket with ONLY free admission (Price=0,-) The ticket is not available in the Ticket Selector (Display Ticket Selector is set to “Yes”). If I create another event where there are one free and one paid ticket both tickets are available in the ticket selector and registration works as expected.

I am using a custom espresso-events-table-template.template.php in order to show remaining seats available for each ticket, and I suspect this might be the problem. Events that has one or more paid tickets are displayed correctly.


HIL Tennis

January 4, 2018 at 2:47 am

Sorry I found the problem but don’t know how to fix it. I followed the instructions by @lorenzocaum as described here https://gist.github.com/lorenzocaum/a6610712a59cf29cca58 but the gist will probably need to be updated as this customization does no longer work if an Event has only Free tickets. When I disable the site specific plugin that selects the custom version of ticket_selector_chart.template_show_remaining_tickets.php in my child thme the text “Free ticket” is displayed.


Josh

  • Support Staff

January 4, 2018 at 8:19 am

Hi there,

That particular snippet of code is not officially supported by Event Espresso. I can share with you how to make it so the ticket selector displays even when the event only has one free ticket. You add this code to a functions file or custom functions plugin:

add_filter( 'FHEE__ticket_selector_chart_template__hide_ticket_selector', '__return_false' );

The support post ‘Event with only free ticket does not show in ticket selector’ 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