Support

Home Forums Event Espresso Premium Filter to conditionally hide some tickets from an event?

Filter to conditionally hide some tickets from an event?

Posted: August 28, 2024 at 9:28 pm

Viewing 7 reply threads


Jeremy Pieta

August 28, 2024 at 9:28 pm

Is there a way I could write a php filter in my site plugin that would hide a ticket from the registration form? I’m comfortable setting up the filter conditions, I just don’t know if there’s something an EE target I can use to hide the row.


Rio

  • Support Staff

August 28, 2024 at 9:47 pm

Can you give example? At the moment, the only setting we have is to hide ticket if it is expired. Or you want to hide ticket based on membership?

thanks


Jeremy Pieta

August 28, 2024 at 10:02 pm

Not based on login; I can’t create wp users for my ~300 “special” attendees.

What I want to do is:
1. Have 12 ticket types for my event,
2. 7 of them appear for all users and 5 default to hidden (i.e. the filter is applied to those rows when a someone goes to “nandesukan.org/badges/” )
3. When they go to something like “nandesukan.org/badges/?special=ticket8”, one of the 5 hidden tickets is unhidden for that person.

I know how to do everything described above except hide one of the table rows in the registration form. Is there something I can target with my filter to do that?


Sam

  • Support Staff

August 28, 2024 at 10:30 pm

Hi Jeremy,

Unfortunately, no such options exist to hide/filter tickets from the event.

However, as a workaround you can create separate events for each of the five tickets and make the events Password Protected: https://tinyurl.com/2dcjjan4


Jeremy Pieta

August 29, 2024 at 2:50 pm

I’m not asking for an option in EE; I know selective row hiding isn’t already a built-in feature. I’m asking for the “FHEE_EE_whatever” codes used for each row on the registration table.

Also, as stated above “I can’t create wp users for my ~300 “special” attendees.” so I cannot use password protected events (and also need all of the tickets to be in the same event for other reasons).


Rio

  • Support Staff

August 29, 2024 at 6:59 pm

2. 7 of them appear for all users and 5 default to hidden (i.e. the filter is applied to those rows when a someone goes to “nandesukan.org/badges/” )

3. When they go to something like “nandesukan.org/badges/?special=ticket8”, one of the 5 hidden tickets is unhidden for that person.

I can’t create wp users for my ~300 “special” attendees.

-how do you plan doing the condition? through JS Script?

Registration table? you mean here? /badges/event-checkout/

You can check the filter/action for the checkout page.
https://support.eventespresso.com/article/447-ee4-single-page-checkout-page-actions-filters

We don’t currently have a full list of all of the actions available within EE, however they are all prefixed with either AHEE__ (Action Hook Event Espresso) or FHEE__ (Filter Hook Event Espresso) so if you search for either of those strings in a text editor/IDE you’ll find all of our hooks.

Thanks


Jeremy Pieta

September 2, 2024 at 7:05 pm

I haven’t tried doing it yet, but I think https://eventespresso.com/topic/ticket-list-filtering/#post-346095 will be able to do exactly what I want here. If it works, I’ll post my code.


Sam

  • Support Staff

September 3, 2024 at 12:20 am

Sure, please let us know if you are facing any issues there.

Viewing 7 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso