Support

Home Forums Event Espresso Premium Change default "guests" to 1 only

Change default "guests" to 1 only

Posted: February 17, 2016 at 7:34 pm

Viewing 3 reply threads


Nicholas Pappagallo

February 17, 2016 at 7:34 pm

I am trying to get rid of the “Free ” Default ticket (or rename it) we use S2 and have it so only logged in members can purchase tixs – can I do that?
Also I am having a difficult time locating the place to change the default for Maximum number of tickets allowed per order for this event: (in the right column) its stuck on 10 and Id like to allow only 1 or 2 per person –
If I put it as (1) will it remove the dropdown box to take that step out of the process?
Thank you Nick

revised: when changed from 10 to 1 it does stay that way but I have many other making events and would like it to stay on 1 (default)


Josh

  • Support Staff

February 17, 2016 at 8:17 pm

Hi Nicholas,

You can change what’s used as the default ticket by editing the ticket, then you click on the gear icon, then you check the box next to “use this new ticket as a default ticket for any new events”.

Then, to make all new events default to 1 ticket per order, we’ll need to add, at the very least, a filter hook to make changing the default there possible. Or we can add an option.


Nicholas Pappagallo

February 20, 2016 at 8:39 pm

Ok so how do we do this “hook” or option? Thxs!


Josh

  • Support Staff

February 22, 2016 at 9:30 am

Hi Nicholas,

You add this to your site, and you’ll see the $limit variable to 1.

https://github.com/eventespresso/ee-code-snippet-library/blob/master/admin/jf_ee_change_max_tickets_order_default.php

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Viewing 3 reply threads

The support post ‘Change default "guests" to 1 only’ 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