Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey pankalkulator,

    How are you doing today?

    Capacity is the number of users that can book a slot for that service at the same time.

    By default this is limited to the number of service providers that are assigned to the service. If you want to lower that limit regardless of number of providers this is where Capacity can help you with.

    Let me add an example. If you have a hair salon and you have two people working there but only one available chair so effectively only one person can work at any time then you’d want to use Capacity option and set it to 1 if that makes sense ??

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter pankalkulator

    (@pankalkulator)

    Hi Bojan!
    Actually I thought the same when it comes to capacity.

    I have a situation where there’s one cleaning team and they can clean 3 houses at the same time, so I’ve set capacity to 3.

    And after making one appointment – the spot goes red, so no one else can make his own appointment at that exact time.

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Hey again pankalkulator,

    If you have one Service lets say its called House Cleaning and you have one Service Provider named Cleaning Team adding Capacity 3 wouldn’t make a difference as you can’t book more then 1 appointment for that slot as you do not have more providers.

    Capacity field is for limiting the workforce, not for increasing it if that makes sense.

    You can either use mutliple service providers and create dummy providers but with this your users will have to select different service providers to book same slots or alternatively you can try adding the following to your theme functions.php:

    function increase_capacity( $capacity, $service_id, $worker_id ) {
        return 3;
    }
    add_filter( 'app_get_capacity', 'increase_capacity', 10, 3 );

    Please note that with this you’ll still have to create 2 dummy service providers but your users should be able to book appointments 3 times on the same slot in case No Preference is selected for service provider.

    I’d still suggest going with multiple providers as forcing capacity like this can sometimes not work as expected.

    Hope this helps ??

    Cheers,
    Bojan

    Thread Starter pankalkulator

    (@pankalkulator)

    Placed Your code in functions.php and works as a charm, Bojan!

    Thanks!
    You’ve made my day! ??

    Plugin Author Bojan Radonic – WPMU DEV Support

    (@wpmudev-support4)

    Awesome! Glad I could help and that I’ve made your day a bit better ??

    Have a nice one!

    Cheers,
    Bojan

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘More than 1 appointment at a time’ is closed to new replies.