Support

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

"You need to select a ticket quantity before you can proceed" with set Quantity

Posted: January 21, 2022 at 12:07 pm

Viewing 1 reply thread


edgewebware

January 21, 2022 at 12:07 pm

Title really describes the issue. There is a select for the quantity of tickets, and you get the ticket quantity error regardless of the value of the select. If you look at the request in the network tab of the browser console, it has the ticket selector populated with the correct quantity. Then looking at the $valid object inside the ProcessTicketSelector.php it has [total_tickets] with the value of zero, which fails the check at line 287 inside the ticket processor file. I don’t know why the plugin is setting the total tickets value to zero.


Brent Christensen

  • Support Staff

January 24, 2022 at 11:52 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.

Viewing 1 reply thread

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