I’m building a custom template for my event pages using EE4 template tags [https://eventespresso.com/wiki/ee4-themes-templates/]
When I use the default post template (which is a custom template designed for our blog articles), I get the event content, map and ticket selector. It’s fine but not in the format/layout I need.
So when I use my own custom event post type template with all my fancy formatting, I can’t get the ticket selector to display using espresso_event_tickets_available() (assuming that’s what I should be using. Content, and map, date, category, venue etc are all good. There’s just no way to actually select and purchase a ticket!
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?
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)
Viewing 1 reply thread
The support post ‘espresso_event_tickets_available() won't display a ticket in custom template’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.