Support

Home Forums Event Espresso Premium Binary Ticket – You need to select a ticket quantity before you can proceed

Binary Ticket – You need to select a ticket quantity before you can proceed

Posted: April 24, 2016 at 11:56 am

Viewing 5 reply threads


nrsworld

April 24, 2016 at 11:56 am

We are using EE4 with Multiple Event Registration. We are holding an event for youth equestrians. We’re setting up multiple events for the equestrians to enter with their horses. Most of these events we desire to only be entered ONCE by the attendee, and they can choose an age division. We wish to only sell 50 tickets per age division.

To that end, I’ve set up an event (Pole Bending) with the options as follows:

Maximum number of tickets allowed per order for this event: 1

And I have two ticket options available:

Girls Pole Bending Seniors ($150, Qty 50)
Girls Pole Bending Juniors ($150, Qty 50)

When you go to the registration page for this event, two ticket options are presented, with a Radio buttion under Qty instead of a drop-down.

When you choose a ticket option with the radio button and then choose “Add to Event Cart”, you get the following pop-up error:

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

These events should work as a binary either/or ticketing option. Shouldn’t picking one of the radio options automatically assign a ticket quantity of 1 when adding to cart?


nrsworld

April 24, 2016 at 12:09 pm

I should note that the error only occurs on the Event’s registration page:
http://nrsevents.com/events/2016-nrsytec-pole-bending/

If I use the ticket select embed code and add it to another WordPress page, the selector works as intended:

http://nrsevents.com/test-nrsytec/


nrsworld

April 24, 2016 at 12:20 pm

I did a little code inspection of the two ticket selection forms side-by-side.

On the Event’s registration page http://nrsevents.com/events/2016-nrsytec-pole-bending/ (ticket option selector not working)

The following code handles the radio value for a ticket:

<input type="radio" name="tkt-slctr-qty-6063" id="ticket-selector-tbl-qty-slct-6063-1" class="ticket-selector-tbl-qty-slct" value="" checked="checked" title="">

On the WordPress page where I embedded the ticket selector http://nrsevents.com/test-nrsytec/ (ticket selector working)

The following code handles the radio value for a ticket:

<input type="radio" name="tkt-slctr-qty-6063" id="ticket-selector-tbl-qty-slct-6063-2" class="ticket-selector-tbl-qty-slct" value="2-1" title="">

So as you can see, the relevant differences it appears that on the working embedded form, the radio option is assigned the value “2-1”, and does not have the property “checked”. The broken form on the event registration page does NOT assign a value to the radio button, and it includes the “checked” property.


nrsworld

April 24, 2016 at 12:24 pm

Another update as I am getting closer to resolving this myself. I changed our theme from a custom theme to the Twenty Twelve theme. The ticket selector on the event registration page WORKS with the Twenty Twelve theme, so I’m going to look at our custom theme’s templates and see if I can find out what is causing the problem.


nrsworld

April 24, 2016 at 4:29 pm

Well, I wasn’t able to find specifically what in our old theme was changing the form values for radio buttons. Instead I built a new theme from scratch to match the look of our old theme.

I think the problem is likely related to jquery in some manner.


Lorenzo Orlando Caum

  • Support Staff

April 25, 2016 at 8:20 am

Hello,

I see that you mentioned that you resolved this by creating an updated theme here (https://eventespresso.com/topic/binary-ticket-you-need-to-select-a-ticket-quantity-before-you-can-proceed/#post-201412).

Your jQuery idea may be true if the original theme needed to be updated for compatibility with WP 4.5:

https://wordpress.org/support/topic/read-this-first-wordpress-45-master-list#post-8271654


Lorenzo

Viewing 5 reply threads

The support post ‘Binary Ticket – 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