How To Prevent Users From Double Booking Events

Have you ever had events that are accepting registrations at the same time, and then had customers purchase tickets or register for both events, even though they can’t split themselves in half and attend both events at the same time?

If so, here is a little trick that Event Espresso maestro himself, Josh, came up with.

First of all you will need to group the events (classes, etc) together in a table. This can be achieved with the table shortcodes from the Custom Files add-on.

Adding the following to the page or page template which displays the tables.

<script> jQuery("a.ee_add_item_to_cart").click(function() { jQuery(this).closest(".espresso-table").fadeOut('slow'); })? </script>

This code hides the table once an item is added to cart, effectively stopping the user from selecting any others from that group.

If the user has Javascript turned off, this will not work.

We always recommend migrating to Event Espresso 4 if the time and situation is right for you. In this case, Event Espresso 4 also has a feature that disallows people from registering for more than one ticket at a time for a single event (given you are NOT using the Multiple Event Registration add-0n). These features can help you select the right events and keep their schedule organized. Additionally, you can add iCal links to your confirmation email messages so that when attendees add your events to their calendar, they can clearly see that they have one or multiple events booked for the same time.


Need more help?

  • Browse or search for more information on this topic in our support forums. Customers with an active support license can open a support topic and get help from Event Espresso staff.
  • Have an emergency? Purchase a support token and get expedited one-on-one help!
  • Go back to documentation for Event Espresso
Event Espresso