Posted: June 26, 2013 at 12:35 pm
|
Hello all, I have created an event which allows a coach to register his team. The coach submits his personal information and then submits all his team members in a text area. The team sizes are a minimum of 3 and a maximum of 12. I enabled group registrations so that the user can choose the number of tickets they need to purchase for the team. However, I need to get rid of the option of buying 1 ticket or 2 tickets from the list, as that automatically disqualifies the user because they need to purchase 3 tickets since the minimum team size is 3. Suggestions? |
We don’t have a way to require that someone purchase a certain number of tickets. What I would probably recommend is to use the Multiple Event Registration addon (https://eventespresso.com/product/espresso-multiple/) which you have access to, and create two types of tickets. One priced for the minimum number (three) and then a ticket priced for the individual. So someone should select the first type of ticket and then they can add more tickets as necessary. Someone could still try to only select single team member tickets, but you could try and communicate that expectation. That’s as close as I can think without getting a developer involved. |
|
|
Multiple Event won’t work, because all the tickets are priced the same. How much would cost to get a developer involved and would it be possible within 24-48 hours? |
Hi Michael, I think you can do this with a few lines of jQuery. If you have the option set in the event editor that says “Additional Attendee Info” set to “No info required” the following code be added to your site. You can add two files to /wp-content/uploads/espresso/ The first one could be called mycustom.js and inside you can put: jQuery(document).ready(function($) { $("select[name='num_people'] option:lt(2)").remove(); }); Please note: the line numbers are printed above for reference, they do not get copied into the file. The second one can be the custom_functions.php file from the custom files add-on You can add this function right after the opening PHP tag: add_action('wp_enqueue_scripts', 'my_custom_script'); function my_custom_script() { global $load_espresso_scripts; if ( ! $load_espresso_scripts ) return; wp_enqueue_script('my-custom-script', content_url('/uploads/espresso/mycustom.js'), array('jquery'), '1.0', true); } |
|
The support post ‘Minimum Team Tickets’ 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.