Support

Home Forums Event Espresso Premium "error has occurred You need to select a ticket quantity before you can proceed"

"error has occurred You need to select a ticket quantity before you can proceed"

Posted: March 9, 2022 at 2:18 pm

Viewing 10 reply threads


tsl_hudson

March 9, 2022 at 2:18 pm

Hello,

I’ve seen this topic come up elsewhere but couldn’t find a solution that worked for me yet:

Yesterday it came to my attention that users could no longer purchase tickets on my site. When they try to buy a ticket it says

“An error has occurred:
You need to select a ticket quantity before you can proceed.”

This happens across all events on the site now, seemingly out of nowhere as things were running smoothly a few days ago.

Previously I had not updated Event Espresso or WordPress, but I did update EE today to 4.10.29.p in an attempt to solve the problem.

Wordpress is on 5.8.3

Is there anything I can do?


Tony

  • Support Staff

March 9, 2022 at 2:23 pm

Hi there,

Can you link me to an event I can view this on, please?


tsl_hudson

March 9, 2022 at 2:41 pm

This reply has been marked as private.


tsl_hudson

March 9, 2022 at 7:12 pm

sure, we took down ticketing on the real events for now so we dont confuse customers, but here is a test that replicates the issue:

https://timeandspace.org/calendar/test-event/

thanks!


Tony

  • Support Staff

March 10, 2022 at 8:51 am

Hi there,

It looks like you are using a custom ticket selector template and it needs a change to keep up to to date with the latest version of Event Espresso.

Within the root directory of your site’s theme do you have a ticket selector template files?


tsl_hudson

March 10, 2022 at 9:16 am

I’m looking at the root directory of the WordPress site, and I’m not sure what files to look for. We manage our templates through the WP interface.


Tony

  • Support Staff

March 10, 2022 at 9:41 am

I’m looking at the root directory of the WordPress site

That’s the wrong location.

EE will load template files from the root directory of your theme if you have any.

{root}/wp-content/themes/{theme}

Add a screenshot fo what you see if preferred and I’ll take a look.

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots


tsl_hudson

March 10, 2022 at 11:20 am

Okay, I found a file called “ticket_selector_chart.template.php” in the root of the theme directory.


Tony

  • Support Staff

March 10, 2022 at 3:15 pm

Ok, so that will be your issue, the template file in use there will be out of date to what Event Espresso is expecting.

Basically anywhere that is outputting the tkt qty like this:

tkt-slctr-qty-<?php echo esc_attr($EVT_ID); ?>[]

Needs to be updated to include the TKT_ID

tkt-slctr-qty-<?php echo esc_attr($EVT_ID); ?>[<?php echo esc_attr($TKT_ID); ?>]

Using whatever variable you are using to hold the Ticket/Ticket ID in that template.


tsl_hudson

March 10, 2022 at 4:16 pm

Thanks, that worked!


Tony

  • Support Staff

March 10, 2022 at 4:34 pm

You’re most welcome 🙂

Any further issues just let us know.

Viewing 10 reply threads

The support post ‘"error has occurred You need to select a ticket quantity before you can proceed"’ 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