Support Archive

Important!!!    Check actual Support Forum, if you need to ask a Questions.

  1. Hi!
    I have a site in three languages​​.
    I wanted to know if I have to clone the form for booking all forms, change the text in the appropriate language and then reconfigure all the rates in resource (very expensive ....), or can I use another method?
    Thanks 😉

      • Hello.
        If you are using the WPML plugin so you can configure the form fields in a way like in this description.
        Booking Calendar is supported WPML and qTranslate plugins for dynamic changing of website locale.

        Usage:
        [lang=LOCALE] - start new translation section in specific language, where LOCALE - locale of the translation. Example:
        Thank you for your booking.[lang=fr_FR]Je vous remercie de votre reservation. - English and French translation Example of configuration booking form in English and French languages at the Booking > Settings > Fields page.
        [calendar] <p>First Name (required): [text* name] </p> <p>Last Name (required): [text* secondname] </p> <p>Email (required): [email* email] </p> <p>Visitors: [select visitors "1" "2" "3" "4"]</p> <p>Details: [textarea details] </p> <p>[submit "Send"]</p> [lang=fr_FR] [calendar] <p>Prénom (obligatoire): [text* name] </p> <p>Deuxième prénom (requis) [text* secondname] </p> <p>Email (obligatoire) [email* email] </p> <p>Visiteurs : [select visitors "1" "2" "3" "4"]</p> <p>Détails : [textarea details] </p> <p>[submit "Envoyer"]</p>

  2. Hi, I'n on multiuser version.
    I'm in deep trouble, with users. I create a user (another than the first superadmin), Then I star create resources. Then I want to create the booking form to associate the advanced cost. At this point i cannot do that, cause the function to create new booking form doesn't exist. I have available only the standard template forms. Why? This way I can't create new booking form. Where's the issue? I assigned administrator level to that user.

    • Hello.
      You are need to open the Booking Settings > Users page, when you are logged in as first admin user of your WordPress system. Then set for that new user status as "Super booking admin user". When you will log in as that second user, you be able to create custom forms at the settings Fields page.
      Kind regards.

      • Yes, that's ok, but this way, to get available the custom mail field for every different users, I need again to set user as 'regular'. And, again, this way, the booking form are not available anymore, moreover the previous matching post-form get lost. User set as regular user losses (in the resource panel), the possibility to match resource with form, cause the choice label disappears. This disappearing, the matching is lost. As you suggested, with all users set as super admin, you're able to create booking form, but there's no more possibility to configure individual mail for every different user. I don't understand.
         

        • In the actual revision is not possible to create the "custom forms" by the "regular users".

          If you want to have this possibility, you are need to make this customization. Please make all these modifications very carefully. (Please make the backup of the files, before these modifications).

          1) Please open this file ../booking/inc/biz_m.php

          then find this code:

          function wpdev_booking_fields_settings_top_toolbar() { $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if (! $is_can) return;
          and replace it to this code:

          function wpdev_booking_fields_settings_top_toolbar() { // $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); // if (! $is_can) return;

          2) Please open this file ../booking/inc/personal.php

          then find this code:

          $booking_form = get_bk_option( 'booking_form' ); $booking_form_show = get_bk_option( 'booking_form_show' ); $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if ( (isset($_GET['booking_form'])) && ($is_can) ) { $my_booking_form_name = $_GET['booking_form']; $booking_form = apply_bk_filter('wpdev_get_booking_form', $booking_form, $my_booking_form_name); $booking_form_show = apply_bk_filter('wpdev_get_booking_form_content', $booking_form_show, $my_booking_form_name); }

          and replace it to this code:

          $booking_form = get_bk_option( 'booking_form' ); $booking_form_show = get_bk_option( 'booking_form_show' ); $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); $is_can = true; if ( (isset($_GET['booking_form'])) && ($is_can) ) { $my_booking_form_name = $_GET['booking_form']; $booking_form = apply_bk_filter('wpdev_get_booking_form', $booking_form, $my_booking_form_name); $booking_form_show = apply_bk_filter('wpdev_get_booking_form_content', $booking_form_show, $my_booking_form_name); }

          3) Please open this file ../booking/lib/wpdev-bk-edit-toolbar-buttons.php

          then find this code:

          $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if ($is_can) make_bk_action('wpdev_show_bk_form_selection') ;

          and replace it to this code:

          $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); $is_can = true; if ($is_can) make_bk_action('wpdev_show_bk_form_selection') ;

          4) Please open this file ../booking/inc/biz_m.php

          A) then find this code:

          if ($is_can) if( (! isset($_GET['tab'])) || ( (isset($_GET['tab'])) && ($_GET['tab']=='resource') ) ) { $link .= ''; ?> <td style="text-align:center;font-size: 11px;border-left:1px solid #ccc;" <?php echo $alternative_color; ?> >

          and replace it to this code:

          $is_can = true; if ($is_can) if( (! isset($_GET['tab'])) || ( (isset($_GET['tab'])) && ($_GET['tab']=='resource') ) ) { $link .= ''; ?> <td style="text-align:center;font-size: 11px;border-left:1px solid #ccc;" <?php echo $alternative_color; ?> >

          B) then find this code:

          } if ($is_can) if( (! isset($_GET['tab'])) || ( (isset($_GET['tab'])) && ($_GET['tab']=='resource') ) ) { ?> <th style="width:60px;text-align:center;" rel="tooltip" class="tooltip_bottom" title="<?php _e('Setting the default form for the specific resource', 'wpdev-booking');?>"> <?php _e('Default Form', 'wpdev-booking'); ?> </th>

          and replace it to this code:

          } $is_can = true; if ($is_can) if( (! isset($_GET['tab'])) || ( (isset($_GET['tab'])) && ($_GET['tab']=='resource') ) ) { ?> <th style="width:60px;text-align:center;" rel="tooltip" class="tooltip_bottom" title="<?php _e('Setting the default form for the specific resource', 'wpdev-booking');?>"> <?php _e('Default Form', 'wpdev-booking'); ?> </th>

          5) Please open this file ../booking/inc/personal.php

          then find this code:

          $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if ($is_can) { $booking_forms_extended = get_bk_option( 'booking_forms_extended'); if ($booking_forms_extended !== false) { if ( is_serialized( $booking_forms_extended ) ) { $booking_forms_extended = unserialize($booking_forms_extended); $advanced_params['custom_forms'] = $booking_forms_extended; } } }

          and replace it to this code:

          $is_can = true; // apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if ($is_can) { $booking_forms_extended = get_bk_option( 'booking_forms_extended'); if ($booking_forms_extended !== false) { if ( is_serialized( $booking_forms_extended ) ) { $booking_forms_extended = unserialize($booking_forms_extended); $advanced_params['custom_forms'] = $booking_forms_extended; } } }

          6) Please open this file ../booking/inc/biz_m.php

          then find this code:

          function get_sql_4_update_def_form_in_resources($blank, $bt){ $sql_res = ''; $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if ($is_can) $sql_res = " , default_form = '".$_POST['booking_default_form_'.$bt->id]."' "; return $sql_res; }

          and replace it to this code:

          function get_sql_4_update_def_form_in_resources($blank, $bt){ $sql_res = ''; $is_can = true; // apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if ($is_can) $sql_res = " , default_form = '".$_POST['booking_default_form_'.$bt->id]."' "; return $sql_res; }

          7) Please open this file ../booking/inc/biz_m.php

          then find this code:

          // in the ADD NEW Booking page function wpdev_show_booking_form_selection(){ //if (! isset($_GET['booking_form'])) $_GET['booking_form'] = 'CustomSelectedForm'; $is_can = apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if (! $is_can) return;

          and replace it to this code:

          // in the ADD NEW Booking page function wpdev_show_booking_form_selection(){ //if (! isset($_GET['booking_form'])) $_GET['booking_form'] = 'CustomSelectedForm'; $is_can = true; // apply_bk_filter('multiuser_is_user_can_be_here', true, 'only_super_admin'); if (! $is_can) return;

          P.S. It will be more easy to make this modifications in next update (5.1). You will be need just modify from this code:

          if (!defined('WP_BK_CUSTOM_FORMS_FOR_REGULAR_USERS')) define('WP_BK_CUSTOM_FORMS_FOR_REGULAR_USERS', ! true );
          to this:
          if (!defined('WP_BK_CUSTOM_FORMS_FOR_REGULAR_USERS')) define('WP_BK_CUSTOM_FORMS_FOR_REGULAR_USERS', true );

            • Probably during a month or so.
              Unfortunately I can not say right now the exact date of this update. Sorry.

              • Hi dears, the modification are successful, thank you. Now i can add custom booking form directly from an user. Now the question is (I'm sorry, I'm your nightmare): is possible for superadmin to see all the booking form created by different users? Now this is not possible, as superadmin i can see only my booking form. If I could see the form, I could also see and modify the advanced cost for every user without log out and log in as another user, while at this moment this is not possible. 
                Thank you for all...

                • Hello.
                  Sorry, right now this feature is not possible, yet.
                  Kind regards.

  3. By going into the Javascript files, I have enabled the calendar to view extra custom fields on hover. This has worked well except on bookings that occur on multiple days, it only displays the details of the booking on the very last booking. Is there a way in the Javascript to show the details on every occurrence of a booking?
    Thanks
    Alex 

    • Hello.
      Sorry, right now this feature is not supporting in actual versions, yet.
      Kind regards.

      • Our client is very keen on having this feature as part of the plugin and could be willing to pay. Please contact me by email if this would be possible

        • Hello.

          If you using the times of booking as check in/out, then its will not work, because these times are applying only to the start  and end dates of booking, and all middle dates fully booked.

          You need to activate using  the option "Use time selections as recurrent time slots" on the General Booking Settings page in "Calendar" section. Its mean that  you will use the times as timeslots. And in this case its can work, but I am not sure, because not tested it, yet.

          Kind regards.

  4. I cannot book from the admin booking page.  I type in all the information including highlighting a date, then it gives me an error say I did not choose a date.

    • Hello.
      If you are using the Booking Calendar Business Small or higher version, please recheck that you do not activated the "Using check in/out" times on the General Booking Settings page and select only one date.
      Also please recheck that your browser do not have any "auto fill" addons, which can generate some issue.
      If the previous not help, please try to deactivate one by one all other active plugins, and retest if its help or not. Its seems like some conflict with some other plugin.
      Kind regards.

  5. Hi dears. Where I can customize/translate the warning: 'this field is required' that appears when I don't fill a required field in booking form? 
    Tnx

  6. Hi!
    In the admin panel of WP, at Booking menu on the left next to the item appears a circle with a number "7" but that does not correspond to the actual bookings.

    • Hello.
      In the "Booking Listing" page at the left side is showing ID of the booking. This ID is assigning automatically. Do you mean this or some thing else ?
      Can you send the screenshot of this issue to support email: support @ wpbookingcalendar.com

  7. Hey there, I was wondering if there is an option to send a PDF file with the "email message for the approved booking "?
    Thank you very much for your help

    • Hello.
      Unfortunately, this feature is not supporting, yet. Sorry.
      Kind regards.

  8. Hi,
    We have this following error message after updating wordpress to version 3.8.1.  Any ideas how to fix this?
    Thanks
    Warning: Missing argument 2 for wpdb::prepare(), called in /home/estienne/public_html/wp-content/plugins/booking.bs.4.0.1/lib/wpdev-booking-class.php on line 1252 and defined in /home/estienne/public_html/wp-includes/wp-db.php on line 992

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/estienne/public_html/wp-content/plugins/booking.bs.4.0.1/lib/wpdev-booking-functions.php on line 19 and defined in /home/estienne/public_html/wp-includes/wp-db.php on line 992

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/estienne/public_html/wp-content/plugins/booking.bs.4.0.1/lib/wpdev-booking-functions.php on line 1038 and defined in /home/estienne/public_html/wp-includes/wp-db.php on line 992
    Skip to main content

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/estienne/public_html/wp-content/plugins/booking.bs.4.0.1/lib/wpdev-booking-functions.php on line 19 and defined in /home/estienne/public_html/wp-includes/wp-db.php on line 992

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/estienne/public_html/wp-content/plugins/booking.bs.4.0.1/lib/wpdev-booking-functions.php on line 1038 and defined in /home/estienne/public_html/wp-includes/wp-db.php on line 992

  9. Hello,
    I have an issue with [search_category].
    My wp category "rooms" holds three articles (each with one resource), but if I type "rooms" in [search_category] field, search result shows only one article and not three articles as expected.
    How can I fix?
    Thanks in advance,
    Luca

    • Hello.
      Please recheck that you was inserting the shortcodes for those (2 other booking resource, which are not showing) only once into the seperate posts, which belong to the "rooms" category. Because if you was inserted the booking forms for the same resource(s) several times, system can find only once these forms in other posts, which do not belong to the "rooms" category.

      Then please, open the Booking > Settings > Search page and click on the "Clear cache" button. After this test the search form again.
      Kind regards.

  10. Display legend below calendar. Translation does not work for me?
    My seetings in the booking setting is following for....

    Availible item: Available.[lang=de_DE]Verfügbar
    Pending item: Pending.[lang=de_DE]Vorgemerkt
    Approved item: Booked.[lang=de_DE]Ausgebucht

    How do I get this fixed? All my other booking translations work just fine just not the legend.
    Or do I need to get this done? Or does this need to get done over my WPML plugin?
    Thank you very much for your help.

     

    • Hello.
      What version of Booking Calendar do you use? This issue fixed in the new version 5.0.
      If you are using the version 4.1 or older, please make this fix:

      Please open this file ../booking/lib/wpdev-booking-class.php
      find this code:
      // Get code of the legend here function get_legend(){ $my_result = ''; if (get_bk_option( 'booking_is_show_legend' ) == 'On') { //TODO: check here according legend $booking_legend_is_show_item_available = get_bk_option( 'booking_legend_is_show_item_available'); $booking_legend_text_for_item_available = get_bk_option( 'booking_legend_text_for_item_available'); $booking_legend_is_show_item_pending = get_bk_option( 'booking_legend_is_show_item_pending'); $booking_legend_text_for_item_pending = get_bk_option( 'booking_legend_text_for_item_pending'); $booking_legend_is_show_item_approved = get_bk_option( 'booking_legend_is_show_item_approved'); $booking_legend_text_for_item_approved = get_bk_option( 'booking_legend_text_for_item_approved'); $my_result .= '<div class="block_hints datepick">'; if ($booking_legend_is_show_item_available == 'On') // __('Available','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_free datepick-days-cell"><a>'.date('d').'</a></div><div class="block_text">- '. $booking_legend_text_for_item_available.'</div></div>'; if ($booking_legend_is_show_item_approved == 'On') // __('Booked','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_booked date_approved">'.date('d').'</div><div class="block_text">- '.$booking_legend_text_for_item_approved.'</div></div>'; if ($booking_legend_is_show_item_pending == 'On') // __('Pending','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_pending date2approve">'.date('d').'</div><div class="block_text">- '.$booking_legend_text_for_item_pending.'</div></div>'; if ( class_exists('wpdev_bk_biz_s') ) { $booking_legend_is_show_item_partially = get_bk_option( 'booking_legend_is_show_item_partially'); $booking_legend_text_for_item_partially = get_bk_option( 'booking_legend_text_for_item_partially'); if ($booking_legend_is_show_item_partially == 'On') // __('Partially booked','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_time timespartly">'.date('d').'</div><div class="block_text">- '. $booking_legend_text_for_item_partially .'</div></div>'; } $my_result .= '</div><div class="wpdev_clear_hint"></div>'; } return $my_result; }

      And replace it to this code:

      // Get code of the legend here function get_legend(){ $my_result = ''; if (get_bk_option( 'booking_is_show_legend' ) == 'On') { $booking_legend_is_show_item_available = get_bk_option( 'booking_legend_is_show_item_available'); $booking_legend_text_for_item_available = get_bk_option( 'booking_legend_text_for_item_available'); $booking_legend_is_show_item_pending = get_bk_option( 'booking_legend_is_show_item_pending'); $booking_legend_text_for_item_pending = get_bk_option( 'booking_legend_text_for_item_pending'); $booking_legend_is_show_item_approved = get_bk_option( 'booking_legend_is_show_item_approved'); $booking_legend_text_for_item_approved = get_bk_option( 'booking_legend_text_for_item_approved'); $booking_legend_text_for_item_available = apply_bk_filter('wpdev_check_for_active_language', $booking_legend_text_for_item_available ); $booking_legend_text_for_item_pending = apply_bk_filter('wpdev_check_for_active_language', $booking_legend_text_for_item_pending ); $booking_legend_text_for_item_approved = apply_bk_filter('wpdev_check_for_active_language', $booking_legend_text_for_item_approved ); $my_result .= '<div class="block_hints datepick">'; if ($booking_legend_is_show_item_available == 'On') // __('Available','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_free datepick-days-cell"><a>'.date('d').'</a></div><div class="block_text">- '. $booking_legend_text_for_item_available.'</div></div>'; if ($booking_legend_is_show_item_approved == 'On') // __('Booked','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_booked date_approved">'.date('d').'</div><div class="block_text">- '.$booking_legend_text_for_item_approved.'</div></div>'; if ($booking_legend_is_show_item_pending == 'On') // __('Pending','wpdev-booking') $my_result .= '<div class="wpdev_hint_with_text"><div class="block_pending date2approve">'.date('d').'</div><div class="block_text">- '.$booking_legend_text_for_item_pending.'</div></div>'; if ( class_exists('wpdev_bk_biz_s') ) { $booking_legend_is_show_item_partially = get_bk_option( 'booking_legend_is_show_item_partially'); $booking_legend_text_for_item_partially = get_bk_option( 'booking_legend_text_for_item_partially'); $booking_legend_text_for_item_partially = apply_bk_filter('wpdev_check_for_active_language', $booking_legend_text_for_item_partially ); if ($booking_legend_is_show_item_partially == 'On') { // __('Partially booked','wpdev-booking') if ( get_bk_option( 'booking_range_selection_time_is_active' ) === 'On') { $my_result .= '<div class="wpdev_hint_with_text">' . '<div class="block_check_in_out date_available date_approved check_in_time" > <div class="check-in-div"><div></div></div> <div class="check-out-div"><div></div></div> '.date('d').' </div>'. '<div class="block_text">- '. $booking_legend_text_for_item_partially .'</div>'. '</div>'; } else { $my_result .= '<div class="wpdev_hint_with_text"><div class="block_time timespartly">'.date('d').'</div><div class="block_text">- '. $booking_legend_text_for_item_partially .'</div></div>'; } } } $my_result .= '</div><div class="wpdev_clear_hint"></div>'; } return $my_result; }

      • I have following Version:
        Version 9.Business.Small.SingleSite.4.1.5

        How do I need to update without loosing data etc?
        And is there anyhow an newsletter function or automatically setup to get the newest version of my wpbooking plugin?

        Thank you ver much
        I appriciate your great support