• Resolved kociecka

    (@kociecka)


    When somebody sends a reservation and until the admin approves it, the days are marked as pending and inactive in the calendar.
    Very often people don’t confiorm reservation and also might make a mistake in dates and until the admin removes the reservation, nobody else can choose the ‘pending’ dates.

    Is it possible to keep them active (ie. possible for other users to choose them)?

    regards

    https://www.ads-software.com/plugins/booking/

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

    (@wpdevelop)

    Hello.
    1) This feature is available in the Business Large version. You can activate this feature at the general booking settings page in “Advanced section”. Please note, it’s also possible to auto decline all bookings for this date, if you approve some booking on this date. Please retest it at the live demo of that version.

    2) Or you can make the customization in the code to have the pending days always free (without any other functionality).

    In this case

    Please open this file ../booking/lib/wpdev-booking-class.php

    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();
            } else {
                $dates_and_time_to_approve = $this->get_dates('0', $bk_type, $additional_bk_types, $skip_booking_id);
                $dates_to_approve = $dates_and_time_to_approve[0];
                $times_to_approve = $dates_and_time_to_approve[1];
            }
            $i=-1;

    and replace it to 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();
            } else {
                $dates_and_time_to_approve = array(array(),array()); //$this->get_dates('0', $bk_type, $additional_bk_types, $skip_booking_id);
                $dates_to_approve = $dates_and_time_to_approve[0];
                $times_to_approve = $dates_and_time_to_approve[1];
            }
            $i=-1;

    Kind regards.

    Thread Starter kociecka

    (@kociecka)

    Thank you very much, that did the job perfectly!
    Thank you so much for the quick and accurate response.

    regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘'Pending' dates inactive’ is closed to new replies.