Home Forums Event Espresso Premium Group Ticket Option – Validating Minimum Number of Registrations

Group Ticket Option – Validating Minimum Number of Registrations

Posted: October 5, 2013 at 3:23 pm

Kristin Weidemann

October 5, 2013 at 3:23 pm

Hey there. I’m trying to create a “Group” ticket option that requires a minimum of five attendees to be registered in order to be used. I’m thinking of a JS validation script along the lines of…

jQuery(“#registration_form”).submit(function (e) {
if(jQuery(‘#price_option-2’).val() == ‘173|General Admission (Groups of 5 or More)’){
if(jQuery(‘.espresso_add_attendee’).length < 4){
alert(‘Please register at least five attendees.’);

But, I have no clue where I should place this. Or, would a script like that even work? Thanks for the help.

Kristin Weidemann

October 5, 2013 at 4:26 pm

PS. I would assume the most effective location for this would be in the validation.js, but I’m not having any luck getting it to cooperate. Not a JavaScript ninja, just trying to get by with this one script. Thanks again!


October 7, 2013 at 4:57 am


Placement depends on what you are trying to change – is it the registration page or the cart?

If the registration page, then the registration_page_display.php would be a good candidate, if the cart then the shopping_cart.php.

Ideally you should copy these to the uploads/espresso/templates folder and edit them there (you will need to copy registration_page.php as well if you are editing the registration_page_display.php they are linked files).

The support post ‘Group Ticket Option – Validating Minimum Number of Registrations’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Dean 5 years, 11 months ago ago

Topic Tags


This topic is: not resolved
Do NOT follow this link or you will be banned from the site!