Support

Home Forums Event Espresso Premium Show ticket details are working for few events and not working for other events.

Show ticket details are working for few events and not working for other events.

Posted: April 6, 2021 at 12:45 am


Practiceedge

April 6, 2021 at 12:45 am

Hi Guys,

I am having an issue with the ticket selector showing the event’s details on some events and not showing on others.

This is how the tickets are showcased on the website:

This how the tickets are showcased on the website

When I click on the “show details+” for the first ticket, the details are not appearing, but when I click on the second ticket(concession), the details are showing up:

As you can see in the above image, the details are shown on the concession ticket, not on the other ticket.

I’ve enabled the “Show Ticket Details?” option to “yes” in the Ticket Selector Template Settings.

Am I missing any other options?


Practiceedge

April 6, 2021 at 12:46 am

Hi Guys,

I am having an issue with the ticket selector showing the event’s details on some events and not showing on others.

This is how the tickets are showcased on the website:

This how the tickets are showcased on the website

When I click on the “show details+” for the first ticket, the details are not appearing, but when I click on the second ticket(concession), the details are showing up:

As you can see in the above image, the details are shown on the concession ticket, not on the other ticket.

I’ve enabled the “Show Ticket Details?” option to “yes” in the Ticket Selector Template Settings.

Am I missing any other options?


Tony

  • Support Staff

April 6, 2021 at 4:11 am

Hi there,

Can you link me to the page I can view this on please?

If we need temp login details to view the site, you can send those using this form:

https://eventespresso.com/send-login-details/


Practiceedge

April 7, 2021 at 12:04 am

Hi Tony,

Thanks for replying back – I’ve sent you the login details.


Tony

  • Support Staff

April 7, 2021 at 5:01 am

Thank you.

So, when viewing the page I can see the same ticket selectors are output multiple times (there are 4 ‘sets’ of the same ticket selectors) which are then hidden.

The JavaScript used to show/hide the sections is using the ID of the element, which means when there are multiple instances of the same ID on the page is up to the browser which specific element it chooses to display. So what is happening is when you click on the ‘visible’ ticket selector, one of those other instances is showing the ticket details.

May I ask why you are using 4 instances and then hiding them?


Practiceedge

April 7, 2021 at 9:50 pm

Hi Tony,

Yeah, I see the problem here. So the first one is populated by Event Espresso “Display Ticket Selector” option, which I have disabled by CSS using the class .event-tickets and by “display: none”. The second one will be visible only to the Desktop, the third one will be visible only to iPads, and the fourth one will be visible only to mobile phones.

So when I removed the CSS and clicked on the “Show Details” option, the first one (which Event Espresso inserted”) displayed the event details. I don’t want that element in my event’s template since it being populated on top of the events page.

How can we disable that default event selector option?

If I choose “Display Ticket Selector” to “No”, none of the ticket selectors show up on the events page.

Is it possible to show tickets via shortcode only?

Thanks,
Jeff.


Tony

  • Support Staff

April 9, 2021 at 3:30 am

Hi Jeff,

Yes, the dynamically added shortcode can usually be removed via a snippet, I’m guessing you are not using the filtered content option in Event Espresso -> Events -> Templates?

However, if you still have multiple instances of the shortcode to call the ticket selector you’ll run into the same issue. The JavaScript is going to display the ‘first’ instance of the ID it finds on the page, which may or may not be the current ticket selector the user is viewing.


Practiceedge

April 12, 2021 at 10:01 pm

Hi Tony,

Thanks for the reply.

I do use the template’s options to filter the content. But for some reasons, even though I select the option to “No” on the “Display Ticket Selector”, – it is still shown on the single event’s page (attached screenshot below).

Display Ticket Selector option on the templates page

And that is why I am asking for the code snippet.

Maybe I will use the “Show Details” option only on the Desktop, for now, to save some hassle.

But your developers can provide a solution for this issue. I would really appreciate it.

Regards,
Jeff.


Tony

  • Support Staff

April 13, 2021 at 5:36 am

If you view up above the section you’ve highlighted above it shows the ‘Event List Pages’ heading, those settings shown are for the event list pages, meaning /events/ and pages using the [ESPRESSO_EVENTS] shortcode.

On that same page if you scroll up a little you’ll see settings for ‘Single Event Pages’ (the page you are working on is a single event page).

What do you have set there?


Practiceedge

April 14, 2021 at 10:52 pm

Hi Tony,

I am not able to find “Display Ticket Seclector” option for for the single events page – please find the screenshot below for reference:

No event selestor option

Am I missing something?


Tony

  • Support Staff

April 15, 2021 at 7:54 am

No, you’re not missing something above, we don’t have the option to remove the ticket selector across all events in the above section as then your users can’t register onto any events at all. Each individual event gives you the option to enable/disable the ticket selector if needed.

So the setting above I was asking about is the ‘Use Custom Display Order’ option, which you aren’t using on single event pages.

That means a function like this should remove the default ticket selector for you:

https://gist.github.com/Pebblo/79429c843eef0dd34da899e295b0755d

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Practiceedge

April 15, 2021 at 11:37 pm

Hi Tony,

Thanks for your help mate – this kinda fixed the issue.


Tony

  • Support Staff

April 16, 2021 at 3:40 am

You’re most welcome, I’m glad that worked for you.

The support post ‘Show ticket details are working for few events and not working for other events.’ 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