Support

Home Forums Event Espresso Premium Mutually Exclusive Events

Mutually Exclusive Events

Posted: February 23, 2016 at 11:34 am


furnituresociety

February 23, 2016 at 11:34 am

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

Thanks,

Bart


Tony

  • Support Staff

February 23, 2016 at 12:06 pm

Hi Bart,

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.


furnituresociety

February 23, 2016 at 12:25 pm

Thank you for your response.

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?

Thanks

Bart


Josh

  • Support Staff

February 24, 2016 at 4:21 pm

Hi Bart,

You won’t be able to access the cart from the filters, but you can access the cart object. eg EE_Registry::instance()->CART

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.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 4 years, 1 month ago ago

Topic Tags

Notifications

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