Hello – We have several events which occur at the same or overlapping times. We would like to prevent people from registering for more than 1 of these events. Is this possible?
I am using EE4 Version 4.8.34.p & EE4 Multiple Event Registration v2.0.9.p on WordPress 4.4.2
Currently not, Event Espresso does not limit which events users can register onto.
It may be possible with some custom development, checking the datetime within each event to see if they clash, however it will not be a simple task as events can have multiple datetimes and tickets which users can register onto any one or more depending on the event setup.
I have had some luck altering the ticket selector for member-only prices using filters on the row (‘FHEE__EED_WP_Users_Ticket_Selector__maybe_restrict_ticket_option_by_cap__no_access_msg’ and ‘FHEE__ticket_selector_chart_template__do_ticket_entire_row’). It seems like I could include a check of the cart contents and look for overlaps. If there are overlaps, then do not allow this ticket to be added to the cart.
Is that what you were thinking of?
I have not dug into the cart code at all – can I get access to the current cart from within one of those filters?
You won’t be able to access the cart from the filters, but you can access the cart object. eg EE_Registry::instance()->CART
Viewing 3 reply threads
The support post ‘Mutually Exclusive Events’ 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.