Home Forums Multiple Event Registration Add-on Change Default Number of Tickets

Change Default Number of Tickets

Posted: January 18, 2017 at 1:16 pm

Chester Bowl

January 18, 2017 at 1:16 pm

I’m using the Add to Cart shortcode with the Multiple Events Registration Add-On to auto-load several events into the cart:

[ESPRESSO_CART_LINK event_id=1-2-3 anchor=’Register for this Event’]

It works fine. But I need a way to set the default number of tickets for each event in the cart at 1 instead of 0, at the very least.

Even better would be some kind of pulldown selector in the cart that would let the user change ALL of the events there to 1 or 2 or 3 or whatever she chooses.

It’s for a camp registration, so the user might have several children she wants to register for each day of the camp. Any ideas?


  • Support Staff

January 18, 2017 at 2:47 pm

Hi there,

What you could do is use some jQuery to automatically change those ticket quantity selectors from 0 to 1 when the cart page first loads up.

Chester Bowl

January 19, 2017 at 9:55 am

Can you point me toward the correct file where the default ticket quantity code is located? Thanks!


  • Support Staff

January 19, 2017 at 11:09 am

There isn’t code that sets the default. That’s a browser default. You can use the wp_add_inline_script() function to add your custom script.

The support post ‘Change Default Number of 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.

Event Espresso