I am currently developing a event management tool which uses EE4 (V4.3.1).
I want to develop a custom ticket selector for my single events, since my usecase is focused on distinct tickets for each datetime of the event (only one ticket available per user-role per datetime, 5-6 datetimes per event per day).
I have developed a sketch by editing some of EE4’s sourcecode-files, namely the ones included in \event-espresso-core-reg\modules\ticket_selector\. (ticket_selector_chart.template.php, EED_Ticket_Selector.module.php ..)
Now my Question is: Are there better ways to achieve this kind of customation then to overwrite some of EE4’s code? I have not found anything on this topic in the developers guide so far…
While we generally do not support customizations, I can let you know that there’s a filter you can use to load in a custom ticket selector from another location on your server. The following code snippet will let you load a ticket selector template from a child theme:
add_filter ('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path', 'my_custom_ticket_selector_template_location');
function my_custom_ticket_selector_template_location(){
return get_stylesheet_directory() . '/ticket_selector_chart.template.php';
}
The support post ‘Development of a custom 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.
Support forum for Event Espresso 3 and Event Espresso 4.