Leave appointments available until confirmed/paid

I believe that your plugin leaves some room for client abuse.

I noticed that if I apply for an appointment, that time slot is immediately filled out.
This may leave room for abuse for businesses that do not require payment for appointments.

I could have one client trying to book the entire day, and that would generate frustration amongst the other clients who are unable to find a time slot since that one client took out the entire day (that is until confirmed/rejected by the provider, which can be 24 hours).

How do I keep the status of a particular time-slot unchanged, until the appointment for that time-slot has been approved by the provider?

Thanks,
A.

  • Hakan
    • The Incredible Smush

    Hi,

    I think "Disable pending appointments after" setting fulfills your request. This information is from the settings page:

    Pending appointments will be automatically removed (not deleted - deletion is only possible manually) after this set time and that appointment time will be freed. Enter 0 to disable. Default: 60. Please note that pending appointments whose starting time have been passed will always be removed, regardless of any other setting.

    In short, it clears a pending appointment after the set time, e.g. 60 minutes. So, that time slot does not need to be blocked for the entire day.

    If you want more details, please let me know.

    Cheers,
    Hakan

  • taropaa
    • The Incredible Code Injector

    Hi Hakan,

    Thanks for the reply.
    I considered this option, but I would need that time to be 24 hours, which defeats the purpose.

    If there is no such option, may I suggest it as a feature for future versions?

    It is no major issue for our application, but it would definitely be a very welcome improvement to this plugin.

  • Hakan
    • The Incredible Smush

    Hi,

    What do you suggest exactly? You say a pending request may not be confirmed by the admin for 24 hours and you don't want to clear it automatically before 24 hours and you still want those time slots be available to booked. Is this what you want?

    So practically it means you accept duplicate bookings. Is it so?

    Cheers,
    Hakan

  • taropaa
    • The Incredible Code Injector

    Hi Hakan,

    Picture this scenario:

    User requests a meeting -> meeting request is stored and displayed in the backend, all emails are sent as per your plugin and settings, but the hours for the meeting are not being grayed out in the calendar (IE you can have multiple requests for a single slot)
    Admin logs in and confirms whichever meeting he wants. Users that did not get selected are automatically sent an email asking them to reschedule (using a custom defined email template such as the ones for confirmations)

    This is just my take on it. The important feature I am trying to point out is that once someone tries to schedule an appointment for a time slot, that time slot is not made unavailable until the appointment is actually booked. The expiration of the appointment is irrelevant to my suggestion.

    Thanks,
    A.

  • Hakan
    • The Incredible Smush

    Hi,

    As of the released 1.0.5 version, you can add the following codes inside functions.php of your current theme.

    Using the example you can have 10 appointments for any time slot regardless of number of specialists. Of course you can change this number as you wish.

    function modify_capacity( $capacity, $service_id, $worker_id ) {
    // You can force capacity only for a specific service too
    // Then make a check of the selected service_id
    // Change this 10 as you wish
    return 10;
    }
    add_filter( 'app_get_capacity', 'modify_capacity', 10, 3 );

    Cheers,
    Hakan

  • Tom Eagles
    • Syntax Hero

    @Hakan Awsome thx a lot, without knowing it you solved a huge headache for me :slight_smile:that feels better lost my cup.

    Is it now possible to book more than one place in a slot say a group of friends going somewhere together? say book 5 from the 10 slots in one go?

  • Hakan
    • The Incredible Smush

    Hi Tom,

    For clarification: You want a filter function to select meeting rooms with a projector.

    So in terms of programming, it has the same logic with the example, you want to book a hotel room, but you require sea view, not mountain view. Am I correct?

    Cheers,
    Hakan

  • Tom Eagles
    • Syntax Hero

    @Hakan kind of but with the option to book it, for example

    I need a conference room on a given date,

    I need video conferencing facilities, projector etc,

    However these items might not be fixed in that room so i would also need to be able to check if they are free and reserve them.

    or for example when making an appointment with a client using a+ i might need to make a booking like the above it would be great for this kind of tight intergration, imagine a huge conference, possibly needing equipment such as interpeter booths, head sets etc etc all would need to be integrated. Or even booking people as interpreters etc.

    This is probably maybe beyond the scope of what you were planning but would make something like this an incredibly powerful tool.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.