Support

Home Forums Announcements Quantity Button

Quantity Button

Posted: September 11, 2020 at 7:24 am

Viewing 0 reply threads


Seth Shoultes

  • Support Staff

September 11, 2020 at 7:24 am

I have an event with multiple ticket options that span different lengths of time (early bird, regular price, late fee price). They are only allowed to register themselves. And thus, I’d like to have the quantity button auto selected. I had a topic on this last month that closed and received the below message on how to fix this. I have since removed the second Jquery loading, and created a plugin with the custom code that was suggested. It is still not working. Any help would be appreciated.

———————————————————–

Thank you, it does help and that’s the issue.
Event Espresso will currently only auto select the ticket if it’s the only ticket within the event the other tickets within the event are preventing the radio button from being checked by default.
The easiest way to work around this is to use some custom jQuery to set the radio button to checked if there is only one of them:
https://gist.github.com/Pebblo/fd0526ccb9047511af2d1302fe39e23a
You can add that to a Custom Functions Plugin on your site.
However whilst testing this out on your site through Chrome’s console, I noticed your actually loading versions of jQuery on the page, http://code.jquery.com/jquery-latest.min.js is included twice and then the version of jQuery released with WP core (which is the one you want to keep).
I’m not sure how those additional version are being added although its likely from the theme, possibly within header.php and footer.php but you’ll need to investigate that further and remove those to prevent issues further down the line.

Viewing 0 reply threads

The support post ‘Quantity Button’ 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 - Staging Server