Support

Home Forums Event Espresso Premium espresso_event_tickets_available() won't display a ticket in custom template Reply To: espresso_event_tickets_available() won't display a ticket in custom template

Reply To: espresso_event_tickets_available() won't display a ticket in custom template

Author Replies
Tony # Posted on March 1, 2018 at 9:53 am

Hi there,

To output the ticket selector you need to use this template tag espresso_ticket_selector( $event ) rather than espresso_event_tickets_available(), if you switch to the above you should get the full ticket selector that allows registrations.

Also, as a related side note, the espresso_event_reg_button() tag does render a Register Now button but the URL is the event page, not the checkout page. Presumably this is because zero quantity of tickets has been selected?

espresso_event_reg_button() links directly to the event to start your registration.

You can’t link directly to the checkout page without submitting your ticket selection so the above template tag links to the event, which should always have the ticket selector availabel to start your registration.

So if you switch to to use espresso_ticket_selector() is the ticket selector output for your event? (Note you need to pass either the EE_Event object or the WP_Post object to the above call)

Do NOT follow this link or you will be banned from the site!