Support

Home Forums Event Espresso Premium EE4 Ticket Selector Hook Using Ticket Name Based on Name Token

EE4 Ticket Selector Hook Using Ticket Name Based on Name Token

Posted: November 13, 2016 at 6:23 pm


jmahan

November 13, 2016 at 6:23 pm

Is there a EE4 Ticket Selector hook that uses Ticket Name based on a Name Token? For example, the Ticket Name is “ClubMember Admission” the Name Token is “ClubMember”. I want to not display all tickets with the Name Token depending on a Cookie Setting.

I have studied the Support Forum and found CSS approaches, not displaying on Private Pages, not displaying using Event ID and Ticket ID, and the WP User Add-On but they do not satisfy my requirements. Event ID/Ticket ID will work but it is not an optimal solution.

Please advise. THX


Tony

  • Support Staff

November 14, 2016 at 6:14 am

Hi there,

Can you provide some further details on what/where is the ‘Name Token’ from?

Is a custom field you have added to the ticket?

The hook you will likely need to use is FHEE__ticket_selector_chart_template__do_ticket_inside_row which has access to the ticket, however I’m not sure where Name Token is coming from currently.


jmahan

November 14, 2016 at 9:13 am

What I call Name Token is just the first portion of the Ticket Name that is unique to the class of ticket I want to control display.
Member Name Token = ClubMember
Ticket-1 Name: ClubMember Admission
Ticket-2 Name: ClubMember Dinner

Where is the hook you mention (link does not work for me). THX


Tony

  • Support Staff

November 14, 2016 at 9:26 am

Where is the hook you mention (link does not work for me). THX

That’s because its not a link 🙂

The hook is within \event-espresso-core-reg\modules\ticket_selector\templates\ticket_selector_chart.template.php

apply_filters( 'FHEE__ticket_selector_chart_template__do_ticket_inside_row', false, $ticket, $max, $min, $required_ticket_sold_out, $ticket_price, $ticket_bundle, $ticket_status, $status_class )

The support post ‘EE4 Ticket Selector Hook Using Ticket Name Based on Name Token’ 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