Support

Home Forums Event Espresso Premium Development of a custom Ticket Selector

Development of a custom Ticket Selector

Posted: August 27, 2014 at 3:59 am

Viewing 5 reply threads


Jonas Brand

August 27, 2014 at 3:59 am

Hello,

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…

Cheers,
Jonas


Jonas Brand

August 27, 2014 at 4:01 am

I would really like to attach a Screenshot by my so-far-outcome but your cloud hoster is blocking me from attaching images hosted on imgur… ๐Ÿ™


Lorenzo Orlando Caum

  • Support Staff

August 27, 2014 at 2:13 pm

Hi,

Content can’t be attached to the support forums but you can post a simple link:

http://example.com/sample.png


Lorenzo


Garth

  • Support Staff

August 27, 2014 at 2:15 pm

Jonas,

Can you post a link to your screenshot please? I’ll ask a developer to comment.


Josh

  • Support Staff

August 27, 2014 at 2:34 pm

Hi Jonas,

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';
}


Jonas Brand

August 29, 2014 at 2:35 am

Thank you Josh, that helped ๐Ÿ™‚

Viewing 5 reply threads

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.

Event Espresso