Double booking bug

Posted · Add Comment

Scheduler Forums BirchPress Scheduler Double booking bug

This topic contains 4 replies, has 4 voices, and was last updated by  Jennifer 6 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #16468

    Doug Campanella
    Participant

    I have a fairly simple setup, but I have a problem with the “No Preference” option causing double bookings. Config

    1 Location
    7 Services (but was able to duplicate using only one service 1hour long)
    5 Providers

    I book an appointment at 10:00 (1st provider is selected)
    I book a second appointment at 10:15 (2nd provider is selected)
    I book a third appointment at 10:30 (3rd provider is selected)
    I book a fourth appointment at 10:00 (2nd provider is selected again overlapping the 10:15).

    Second scenario (easier)

    I book an appointment at 10:00 (1st provider is selected)
    I book a second appointment at 10:30 (2rd provider is selected)
    I book a third appointment at 10:00 (2nd provider is selected again overlapping the 10:30).

    This appears to be related to the No Preference JS, not the backend. I added this as a fix for now:

    add_filter('birchschedule_view_bookingform_validate_appointment_info', function($errors){
    global $birchschedule;
    $time_errors = $birchschedule->view->bookingform->validate_booking_time();
    return array_merge($errors, $time_errors);
    }, 20);

    This causes the back end to catch the double book and send back a “Time is unavailable” error, which is better than the double booking.

    Thanks,

    Doug

    #16509

    Jennifer
    Keymaster

    Hi Doug,

    Did each service take 1 hour? I can not reproduce the problem you mentioned. If possible, please submit a ticket and give me access to your WP Admin to have a test.

    #30741

    j w
    Participant

    Had the same issue arise, and that add_filter helped solve our issue.

    #31131

    Lisa Chang
    Participant

    I’m having that problem. I can double book the same provider.

    #31238

    Jennifer
    Keymaster

    Please submit a ticket.

Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘BirchPress Scheduler’ is closed to new topics and replies.

Comments are closed.