Support

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

"You need to select a ticket quantity before you can proceed."

Posted: January 23, 2022 at 11:15 am

Viewing 6 reply threads


KineticPulse

January 23, 2022 at 11:15 am

This error has suddenly started appearing, even with the ticket quantity selected. It’s now not possible to book any tickets for any events as this error comes up for all events, front end or back end registration.
Latest version of Event Espresso, latest version of WordPress

e.g: https://tallulahroseflowers.com/events/4-weeks-career-change-course/


KineticPulse

January 23, 2022 at 11:17 am

I have cleared server cache and browser cache, but it’s happening for all users in any case


Brent Christensen

  • Support Staff

January 24, 2022 at 11:44 am

My apologies, I changed how the ticket selector templates were setup to fix another issue (I’m EE’s lead dev) and forgot that some people are using custom templates.

The easy quick fix is to edit your templates and add the ticket ID to the name attribute for the select inputs, like so:

change:

<select name="tkt-slctr-qty-108[]"

to something like:

<select name="tkt-slctr-qty-108[ TKT_ID ]"

where TKT_ID is whatever variable you are using for the ticket ID. That will need to be echoed out, so the final code might look something like:

<select name="tkt-slctr-qty-108[ <?php echo $ticket->ID();?> ]"

but I don’t know exactly how you have your custom templates setup, so you will need to tweak things accordingly.


KineticPulse

January 24, 2022 at 12:23 pm

Thanks for the swift reply. Although I’m using a custom template part for the single event page, I am not using a custom template for the tickets.

The line in my template is:
<?php espresso_get_template_part( ‘content’, ‘espresso_events-tickets’ ); ?>

Which is calling the standard plugin template part is it not?


KineticPulse

January 24, 2022 at 12:26 pm

Sorry! it’s a few of years since I looked at this site, and I forgot that I have a function to override the ticket selector template. Your solution should be wasy to implement


Brent Christensen

  • Support Staff

January 24, 2022 at 5:21 pm

did you change the hidden inputs too?
you just need to change the select input that sets the quantity.
do NOT change the inputs named tkt-slctr-ticket-id-{EVT_ID}[]


KineticPulse

January 25, 2022 at 12:55 am

Yes, it works fine now. Thanks!

Viewing 6 reply threads

The support post ‘"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