But what I’m finding is that’s only true if there are multiple tickets in the basket, i.e, the class isn’t “spco-attendee-ticket-25” but “spco-attendee-ticket-single” if there’s only one ticket. So it’s not possible to target a question for hiding based on ticket type because it’s not possible to identify the ticket type.
Is there any way around that? Can I force the ticket type to be part of the class even if there’s only a single ticket?
Thanks for the writing out the details. What we can do is in the next update include a change to the template so the class will be
“spco-attendee-ticket-25”
instead of
“spco-attendee-ticket-single”
It’s a really small change so if you want to make that change now on your site (before the update) you can open up
modules/single_page_checkout/reg_steps/attendee_information/attendee_info_single.template.php
Do you think it would be a good idea to add “spco-attendee-ticket-25” (or whatever) as an extra class in case anybody is already targetting “spco-attendee-ticket-single”?
I had thought about it but decided it wasn’t needed because that particular template was introduced in the most recent release of EE4. So it’s been in the wild for only a few weeks. More than likely no one is using that class.
Also, going forward if someone wanted to target div they could do so without that class.
Fair enough, I didn’t realise it was a recent addition.
Viewing 4 reply threads
The support post ‘Hiding questions based on ticket types’ 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.