• Resolved jkp1826

    (@jkp1826)


    I would like to show the past availability for bookings. Nothing shows from before today (7/26) and I have several reasons why I need the fact they were requested versus confirmed to continue to show after the date (and would like to edit them as well, but that is not as important!)

    Thank you!

    I’m using Booking v5.4.2 Small Business

    https://wordpress.org/plugins/booking/

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

    (@wpdevelop)

    Hello.
    Its possible to activate this feature by making some customizations.
    Please note, if you will have too many bookings, its can impact to the speed of loading page with these booking forms.

    If you still want to make this customization, please make this fix.

    1) Please open this file: ../{Booking Calendar Folder}/js/client.js

    find this code:

    var bkMinDate = 0;

    and replace it to this code:

    var bkMinDate = null;

    2) then open this file: ../{Booking Calendar Folder}/lib/wpdev-booking-class.php

    find this code:

    WHERE  dt.booking_date >= CURDATE()  AND bk.booking_type IN ($bk_type_additional) AND bk.form like '%admin@blank.com%'

    and replace it to this code:

    WHERE   bk.booking_type IN ($bk_type_additional) AND bk.form like '%admin@blank.com%'

    3) then find this code:

    WHERE dt.booking_date >= CURDATE() AND bk.booking_type IN ($bk_type_additional)

    and replace it to this code:

    WHERE bk.booking_type IN ($bk_type_additional)

    4) finally find this code:

    WHERE  dt.approved = $approved AND dt.booking_date >= CURDATE() AND bk.booking_type IN ($bk_type_additional)

    and replace it to this code:

    WHERE  dt.approved = $approved AND bk.booking_type IN ($bk_type_additional)

    Kind Regards.

    Please note, if you will modify the source code of the Booking Calendar, we will not guaranteed the correct work of plugin and do not support it.
    Kind regards.

    Thread Starter jkp1826

    (@jkp1826)

    We attempted this, but the historical bookings are not showing up, nor can we add them via the “add booking” tool”. So we can navigate to the past months like July, but there is no data displayed…

    Any suggestions?

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    Sorry for delay with reply to you (just missed you last reply).
    Please recheck my previous instruction in previous comment, probably you was making some mistake in that configuration. Because that customization must activate to show past bookings in the calendar.
    Kind Regards.

    Thread Starter jkp1826

    (@jkp1826)

    I’m still having trouble with this. Can you PM me at jenny@blueshiftinnovation.com please? I’d like to talk about getting this feature added to your roadmap. 🙂

    Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    You can contact about adding some new features directly here http://wpbookingcalendar.com/contact/
    Or by email: support @ wpbookingcalendar.com
    Kind regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Past Availability’ is closed to new replies.