Viewing 2 replies - 1 through 2 (of 2 total)
  • if you can code, you can start with this snippet (paste in your theme functions.php)

    function my_booking_restrictions( $result, $EM_Booking ){
      $my_categories = $EM_Booking->get_event()->get_categories()->get_ids();
      foreach($EM_Booking->get_person()->get_bookings() as $booking){
         $EM_Event = $booking->get_event();
         //get the event categories as above and do some comparing, if you want to say 'no':
         if( !$result){
           $EM_Booking->add_error('You cannot book in the same category');
           return false;
         }
      }
      return $result;
    }
    add_filter('em_booking_validate', 'my_booking_restrictions');

    DrHanson

    (@drhanson)

    Thanks for this! I’d like to do something similar – prevent creation of an event if another event already exists in the same location and time. Can you provide a similar snippet?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Events Manager] Prevent Double Bookings – Different Locations Same Date / Time’ is closed to new replies.