• Resolved nubee

    (@nubee)


    Right now, when someone requests a reservation, but it hasn’t been confirmed by the admin yet, others cannot request that date again until the admin has refused that request.

    This is a problem in my project, because it allows a user who misunderstood “reservation” as “give us your availabilities” to block multiple dates for others for potentially days, a troll to reserve several weeks just to annoy others, or a selfish person who hasn’t decided yet to block two full weeks just because they don’t know their date yet.

    I would like to modify the plugin so that several reservations can exist on a given date until one of them is accepted.

    Could you guide me to make the process smoother? Perhaps there’s even a “clean” way to do it, that’ll allow me to update the plugin in the future, through hooks?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.

    1) In the Booking Calendar Business Free version you can make a fix for showing pending days always available, but then its will not work auto cancellation feature for other pending bookings that was submitted for specific date(s), as in above description. So if you want to make a fix, then follow this instruction.
    Please open this file ../{Booking Calendar Folder}/core\lib\wpdev-booking-class.php
    ( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )

    then find this code:

    
                    if ( (class_exists('wpdev_bk_biz_l')) && (get_bk_option( 'booking_is_show_pending_days_as_available') == 'On') ){
                        $dates_to_approve = array();
                        $times_to_approve = array();           
    

    and replace it to this code:

    
                    if (  true  ){
                        $dates_to_approve = array();
                        $times_to_approve = array();           
    

    2) In Booking Calendar Business Large version, you can define to have all “pending bookings” to have as available dates in calendar, and only after you approve some booking, for those dates, these dates will become unavailable for other visitors. Please read more about this feature here: https://wpbookingcalendar.com/overview/#pending-available

    You can make upgrade to the higher version of Booking Calendar from your exist version of plugin by clicking on the “Upgrade” menu item at the top right side of General Booking Settings page in your admin panel.
    You can test Booking Calendar live demos at this page https://wpbookingcalendar.com/demo/ to be sure in functionality and do not have misunderstanding.
    Kind Regards.

    Thread Starter nubee

    (@nubee)

    Hi,

    I greatly appreciate your quick and helpful answer. Thank you.

    The Large Business version is a bit out of budget for the scale of this project, so I will go with the modification you suggested. So far it seems to work like a charm. Would you happen to know of a way to make this change in the theme rather than directly in the plugin, as to not block future updates?

    • This reply was modified 7 years, 2 months ago by nubee.
    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Good to know that it helpful.
    In actual version update it’s only the way how to customize it.
    I will inform, if it’s will be available to customize via hooks in future updates.
    Kind Regards.

    Thread Starter nubee

    (@nubee)

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unconfirmed reservation requests in Admin Confirm mode not blocking others’ is closed to new replies.