• Resolved DebsWebs

    (@debswebs)


    Hi,

    I am currently using the business medium version and I need to know whether it’s possible to have some resources only allow 1 reservation per time period and have other resources allow multiple reservations per time period.

    For example, I have a meeting room that can only have 1 reservation per time period, but I also have a fitness center that can have 6 reservations per time period. I only see settings for either allowing all resources to have unlimited bookings or only 1 booking per time period. And it looks like they all have to have the same settings even though they can have different forms.

    Am I missing something? Is there a combination of the settings that I can use to achieve what I need?

    Thanks so much.

Viewing 1 replies (of 1 total)
  • Plugin Author wpdevelop

    (@wpdevelop)

    Hello.
    1) Yes, such setting are global and apply to all booking resources (Calendars). Unfortunately, its does not possible to define it for separate booking resources from the settings.

    You will be need to make additional source code customization for having this functionality.

    For example, let you having the booking resources with following ID:

    – ID = 3 “Resource A” ( after booking having days as unavailable )
    – ID = 4 “Resource B” (need to have option ” Allow unlimited bookings per same day(s) ” – days always available )

    Please open this file ../wp-content/plugins/{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:

    ********************************

    
            $booking_is_days_always_available = get_bk_option( 'booking_is_days_always_available' );
    //        if ( strpos($_SERVER['REQUEST_URI'],'page=wpbc-new') !== false ) { $booking_is_days_always_available = 'On'; }
            // if ( in_array( $bk_type, array( '12', '15', '17' ) ) ) $booking_is_days_always_available = 'On';     // Set  dates in calendar always available only  for specific resources with specific ID
            if ( $booking_is_days_always_available == 'On' ) {
               // No Booked days
                
            } else {
    

    ********************************

    and replace it to this code:

    ********************************

    
            $booking_is_days_always_available = get_bk_option( 'booking_is_days_always_available' );
    //        if ( strpos($_SERVER['REQUEST_URI'],'page=wpbc-new') !== false ) { $booking_is_days_always_available = 'On'; }
    if ( in_array( $bk_type, array( '4' ) ) ) $booking_is_days_always_available = 'On';     // Set  dates in calendar always available only  for specific resources with specific ID
            if ( $booking_is_days_always_available == 'On' ) {
               // No Booked days
                
            } else {
    

    ********************************

    Of course, if you have the different ID (than 3 and 4) of such booking resources you need to make fixes in the code (that is marked with bold font).

    Also at the Booking > Settings General page in calendar section, you need to be sure that these options was unchecked:

    – “Use pending days as available”
    – ” Allow unlimited bookings per same day(s) ”

    Disclaimer. Unfortunately we can not start, right now, some personal customization or custom development, because almost have no free time.
    Check more about new features here https://wpbookingcalendar.com/faq/need-new-feature/
    Thank you for understanding.

    2) This forum is only about support of Booking Calendar Free version, if you will have any other questions about the paid versions, please contact here https://wpbookingcalendar.com/contact/
    Kind Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Functionality question for business medium’ is closed to new replies.