Support

Technical help board
Important.  Check FAQ first for existing answers before posting new Questions.
Note.  You can check archive 1, archive 2 and archive 3 of support technical board of already exist solutions and troubleshooting stories.
If you have any technical question about the plugin or configuration of plugin or if you found some issue, please describe it here. Please, inform inside of message your version of WordPress, PHP, Booking Calendar. Also sometimes is needed list of used plugins inside of system and name of your WordPress theme.

  1. Hi:

    Currently we are having a problem with adding a gateway integration to the booking calendar plugin.

    Problem: There are six payment buttons displayed on the payment page of the booking calendar when there should only be one, as only one gateway has been enabled.

    We tried your previous suggestion below without success. There were a couple of hidden files in the folder we are wondering if they are required.

    Please send a script that could be used to update the wordpress database to disable all the gateways.

    Thanks,
    Brian

    Sent: October 17, 2017 8:25 AM
    Subject: FW: Booking Calendar. Support. Gateway
    Sent: October 15, 2017 2:17 PM
    To: Brian Poapst
    Subject: Re: Booking Calendar. Support. Gateway

    Hello.
    Thank you for interest to the Booking Calendar.
    Probably you need to have just this code (please test it):

    ...
            ////////////////////////////////////////////////////////////////////////
            // Payment Form
            ////////////////////////////////////////////////////////////////////////
            ob_start();
    
            ?>
            <form action="" method="GET" id="TRACCPayForm" name="TRACCPayForm" style="text-align:left;" class="booking_TRACCPayForm" target="_blank">
            
                      <input type="hidden" name="amount" value="" />
                      <input type="submit" value="" class="btn" />
                      <?php
                      //$payment_form_arrays = array();
                      //$payment_form_array = array();
            //$regex = "/\/";
                      $payment_form = ob_get_contents();
            //$payment_form_arrays = preg_split($regex, $payment_form);
                      //$payment_form_array = preg_split($regex, $payment_form_arrays[1]);
                      return $output . $payment_form;
    ...
    

    Also at the Booking > Settings > Payment page you can activate ot deactivate specific payment systems.
    Kind Regards.

    On Sun, Oct 15, 2017 at 8:08 PM, Brian Poapst wrote:
    We created our own gateway and added as the gateway file to be used by the Booking Calendar. It all works fine so far except we get multiple pay buttons (Pay by TOPs) showing up in the calendar and we can't figure out where in the code this is happening. We have included the code in the email if you could identify where the multiple pay buttons are being created it would be much appreciated.
    Thanks,
    Brian

    • Hello.

      Each payment gateway have must have function like this:

      public function get_payment_form( $output, $params, $gateway_id = '' ) {
      ...
      }

      Inside of this function is checking if the payment form available or not via this code:

              if (    
                         (  ( ! empty( $gateway_id ) ) && ( $gateway_id !== $this->get_id() )  )      // Does we need to show this Gateway
                      || ( ! $this->is_gateway_on() )                                                 // Payment Gateway does NOT active
                 ) return $output ; 
      

      And as far as you can see this function

          public function is_gateway_on() {
              
              $op_prefix = 'booking_' . $this->get_id() . '_';
              
              $is_active = get_bk_option( $op_prefix . 'is_active' );        
              
              if ( $is_active == 'On' )        
                  return true;
              else
                  return false;        
          }
      

      is checking if the specific payment gateway activated or not.

      Inside of this function is getting options like: "booking_paypal_is_active" or "booking_sage_is_active", etc... (depend from payment gateway ID).
      These options is getting from the wp_options table in your database.
      If some such options have value 'On', then the specific payment gateway is activated.

      Its how original payment gateways is working inside of the Booking Calendar.
      I do not know where and what customization you was made, if its inside of one file, or you was modified other files of plugin, that's why its very hard to say where is issue. Please recheck your code, and recheck your customization, if you was modified original source code of plugin.

      Disclaimer. Unfortunately we can not start, right now, some personal customization or custom development, because almost have no free time.
      Thank you for understanding.
      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.

    • Hello.
      You need to configure your booking form at the Booking > Settings > Form page in a way like this:

      [calendar] 
      <style type="text/css">
         .wpbc-booking-form .wpbc-row {
             width: 100%;
         }
         .wpbc-booking-form .clear {
             clear:both;
             margin: 0;
             height: 10px;
         }
         .wpbc-booking-form .wpbc-col {
             width: 49%;
             float:left;
             margin-left:1%;
         }
         @media (max-width: 782px) {  
           .wpbc-booking-form .wpbc-col {
             width: 100%;
             float: none;
             margin-left:0;
           }
         }
      </style>
      <div class="wpbc-booking-form">
         <div class="wpbc-row"> 
           <div class="wpbc-col">First Name (required):[text* name] </div> 
           <div class="wpbc-col">Last Name (required):[text* secondname] </div>
           <div class="clear"></div> 
         </div> 
         <div class="wpbc-row"> 
           <div class="wpbc-col">Email (required):[email* email] </div> 
           <div class="wpbc-col">Phone:[text phone] </div> 
           <div class="clear"></div> 
         </div> 
         <div class="wpbc-row"> 
           <div class="wpbc-col">Address (required):  [text* address] </div> 
           <div class="wpbc-col">City (required):  [text* city] </div> 
           <div class="clear"></div> 
         </div> 
         <div class="wpbc-row"> 
           <div class="wpbc-col">Post code (required):  [text* postcode] </div> 
           <div class="wpbc-col">Country (required):  [country] </div> 
           <div class="clear"></div> 
         </div> 
         <div class="wpbc-row"> 
           <div class="wpbc-col">Adults:  [select visitors "1" "2" "3" "4"] </div>  
           <div class="wpbc-col">Children: [select children "0" "1" "2" "3"] </div> 
           <div class="clear"></div> 
         </div> 
         <div class="wpbc-row"> 
           <p>Details: [textarea details] </p> 
           <p>[checkbox* term_and_condition use_label_element "I Accept term and conditions"] </p> 
           <p>[captcha]</p> 
           <p>[submit class:btn "Send"]</p> 
         </div> 
      </div>
      

      Kind Regards.

        • Hello.
          1) Its seems because of some security settings or miss-configuration at your server possible such issue.
          Please recheck your error.log in your server configuration, about any relative errors.
          If you can not find error.log file, please contact support of your hosting company about helping in finding this file.

          2) Also you can try this.
          Please try to deactivate one by one all your active plugins at the WordPress > Plugins menu and make testing after each plugin deactivation.
          If its not help, please deactivate all your plugins and active the default WordPress theme. And then retest it again.
          We just need to find the reason of this issue.
          Kind Regards.

  2. Hi,

    we use the medium paid version of your plugin on our website in order to take bookings for the holiday home and now we are encountering javascript errors have broken all popups on the site. Any plugin that works with popups now reports a javascript error and we did a plugin test and realised it is the WPBookingCalendar that is causing it.

    We urgently need this resolved as we paid for the plugin to solve one issue, and it created a whole array of others.

    • Hello.
      I can suggest that this issue because of conflict with bootstrap library.
      Please note, Booking Calendar is using Bootstrap version 3.3.5, if your actual theme or some other plugin is using some other version of Bootstrap, its can be reason of why modal windows do not opening.
      1) Please open the Booking > Settings General page and in Advanced section click on "Show advanced settings of JavaScript loading" and then set as checked this option "Disable Bootstrap loading on Front-End" (Please note only this option, do not activate disabling loading of bootstrap also at the admin panel.
      Save changes in this settings page.
      Test it.
      Please note, while you will have this option as checked, in Booking Calendar will not be opening mouse over tooltips in calendar or in timeline at front-end side, which is working via bootstrap library.

      2) Other solutions can be disabling of loading any Booking Calendar JavaScript files at front-end side and load it only at the page(s) with booking form. So its means that this issue which you are having will be only at the pages with booking forms, and all other pages have to work fine.
      Firstly please deactivate (set unchecked) option "Disable Bootstrap loading on Front-End" from the previous step #1, just to be sure that its will work with mouse over tooltips.
      Next at the same Booking > Settings General page in Advanced section click on "Show advanced settings of JavaScript loading" then click "Load JS and CSS files only on specific pages" checkbox and in showing textarea enter relative URLs to the pages with booking forms. One URL per row.
      For example, if you are having your booking forms at the pages, like this:

      https://server.com/apartment-1/book-now/
      https://server.com/booking/apartment-2/

      then in this textarea you need to enter these URLs:

      /apartment-1/book-now/
      /booking/apartment-2/

      Save settings changes. Test it.

      3) Otherwise, if you still have some issue, its means that at the page exist some other JavaScript error(s). Please send the link to the page where you are having this issue, so then I will check it.
      Thank you.

  3. I would like to create a User in my Admin Portal to enable him/her the ability to change the status of a Booking from Pending to Approved. That is ALL that they need to have access to. In other words, I don't want to give them FULL Administrator Rights to do this simple task. What do you suggest?

    • Hello.
      By default its does not exist this functionality in the Booking Calendar plugin.
      You will be need to make customization in the source code of plugin to recheck about this user or rle of this user and block showing other buttons in the Booking Listing and in Calendar Overview pages.
      You need to check and customize these files:
      - ../{Booking Calendar Folder}/core/admin/wpbc-class-listing.php
      - ../{Booking Calendar Folder}/core/admin/wpbc-class-timeline.php

      Access to other pages for this user role youcan block at the Booking > Settings General page in Access menu section at right side of that page.

      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.
      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.

      If you need such type of work, so probably you need to find some web-developer, who will make this for you.

      You can find some WordPress developers here: https://jobs.wordpress.net/
      or here: https://www.elance.com/r/jobs/q-WordPress
      or here https://www.freelancer.com/jobs/Wordpress/1/

      Kind Regards.

    • Hello.
      You can add that CSS code to one of your CSS files in your theme,
      or add to the bottom of the ../{Booking Calendar Folder}/css/client.css file.

      Please do not forget to clear browser cache before testing these changes.
      Kind Regards.

  4. I have just purchased and installed the latest version of Booking, the personal version just out. It all looks great except I do not see how to see different availability for each resource. I need to block out all but one week for one resource. While others are available all the time, or just certain hours of specific days.
    Please show me how I do this.

    • Hello.
      In the Booking Calendar Personal version the only way to make some dates as unavailable by making “blank” bookings at the Booking > Add booking page.

      1) If you need to set for specific booking resources some days during specific season as unavailable, so then it’s possible in the Booking Calendar Business Medium or higher versions. Please read more about this feature here: https://wpbookingcalendar.com/overview/#availability
      Please note,such availability possible to set only for full days.

      2) The ability to book for the specific times only possible in the Booking Calendar Business Small / Business Medium versions (and in higher versions for booking resources with capacity =1). Please note if you will make the booking for the specific timeslot, this timeslot become unavailable for the other visitors for that selected date in current specific calendar.
      You can configure the timeslots selections on the Booking > Settings > Form page. Please use the “shortcode generator” on the right side of that page for the correct generation of the shortcode.
      You can use one”timerange” (timeslots) or “start time” and”end time” selections or”starttime” and “duration”of time selections shortcodes or even start time and end time entering shortcodes. Please read more about the booking form fields configuration here https://wpbookingcalendar.com/help/booking-form-fields/
      You can test the bookings for the specific time-slots in action on the live demo of Business Small version (which is configured by default for the bookings of specific time-slots) here: https://bs.wpbookingcalendar.com/ Other live demo you will need to reconfigure.

      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.

      Kind Regards.

  5. Hi Support,

    Where do I remove the items in the code as below:

    1) Remove all Help Button Tap on the right hand side
    2) Upgraade Tap on the right
    3) Remove hrpyerlik the "advance cost" that redirect to wpbookingcalendar

    Thanks.

    regards,
    aaron

    • Hello.
      1) Please open this file ../{Booking Calendar Folder}/core/admin/wpbc-toolbars.php

      ( you can check how to edit files in WordPress menu in this article http://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )

      then find this code:

      function wpbc_bs_dropdown_menu_help() {
      

      and replace it to this code:

      function wpbc_bs_dropdown_menu_help() {
          return;
      

      2) Please open this file ../{Booking Calendar Folder}/inc/_ps/admin/page-settings-up.php
      then find this code:

      class WPBC_Page_SettingsUp extends WPBC_Page_Structure {
          
          
          public function in_page() {
              return 'wpbc-settings';
          }        
      

      and replace it to this code:

      class WPBC_Page_SettingsUp extends WPBC_Page_Structure {
          
          
          public function in_page() {
              return 'wpbc-settings0';
          }        
      

      3) Please open this file ../{Booking Calendar Folder}/core/admin/wpbc-dashboard.php

      then find this code:

             wpbc_dashboard_section_version(); 
             
             wpbc_dashboard_section_support(); 
             
             ?><div style="clear:both;"></div><?php 
             
             wpbc_dashboard_section_news(); 
      

      and replace it to this code:

             // wpbc_dashboard_section_version(); 
             
             // wpbc_dashboard_section_support(); 
             
             ?><div style="clear:both;"></div><?php 
             
             // wpbc_dashboard_section_news(); 
      

      Kind Regards.

      • Hi support,

        Where to remove the hyper link at below:

        Booking calendar > Reource > Advance cost > right side "Please check more info about configuration of this cost settings on this page."

        There is a hyperlink on "page"

        Thanks.

        regards,
        aaron

        • Hello.
          You can find it at this file ../{Booking Calendar Folder}/inc/_bm/admin/page-cost-advanced.php
          by searching this code:

                                    <?php  printf(__('Please check more info about configuration of this cost settings on this %spage%s.' ,'booking')
                                            , '<em><a href="http://wpbookingcalendar.com/faq/" >','</a></em>' 
                                          ); 
          
          • Hi Support,

            Everytime i create a new user on their first login to booking calendar. There is a tooltip pop at the top "We’ve assembled some links to get you started:" , how do i get rip of this tool tip so it will never appear again or has to be manual dismiss when a new user is created?

            thanks.

            regards,
            Aaron

            • Hello.
              You can make this fix to not show that tooltip at all.
              Please open this file ../{Booking Calendar Folder}/core/wpbc-functions.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:

              function wpbc_welcome_panel_content() {
              

              and replace it to this code:

              function wpbc_welcome_panel_content() {
                return;
              

              Kind Regards.

  6. Hi Support,

    Where is the tutorial for setting the calendar to be display beside the forms?

    regards,
    Aaron

    • Hello.
      Its possible in the any paid versions of Booking Calendar.
      You can use the standard "booking form" template for showing booking form and calendar "side by side".

      Please open the Booking > Settings > Fields page, then in the action toolbar, select "2 Columns form template" and click on "Reset" (or "Both") button, to reset the exist booking form customization to the default one.

      You will have this booking form customization:

      <div style="float:left;margin-right:10px;   " >  [calendar]  </div>
      <div style="float:left;" >
           <p>First Name (required):[text* name] </p>
           <p>Last Name (required):[text* secondname] </p>
           <p>Email (required):[email* email] </p>
           <p>Phone:[text phone] </p>
           <p>Adults:  [select visitors class:span1 "1" "2" "3" "4"]  Children: [select children class:span1 "0" "1" "2" "3"]</p>
      </div>
      <div  style="clear:both">
           <p>Details: [textarea details 100x5 class:span6]</p>
            [captcha]
           <p>[checkbox* term_and_condition use_label_element "I Accept term and conditions"]</p>
           <hr/><p>[submit class:btn "Send"] </p>
      </div>
      

      Click on "Save changes" button and then test it.
      Kind Regards.

      • Hi Support,

        When i create capacity i can choose maximum 200 capcity only? If i have 400 capacity for 1 hotel then how should i go about it?

        Thanks.

        regards,
        Aaron

        • Hello.
          You need to add child booking resources in 2 steps.
          Firstly add 200 child booking resources and after that add another 200 child booking resources.

          Please note, at some servers can be exist limitations of number input fields per page (HTML FORM), so its can be issue during saving settings page, where exist too many input text fields. For rechecking about such limitations you need to check php.ini file in your server configuration. Please contact support of your hosting, if you will have this issue and can not resolve it.

          Thank you.

  7. I would like to change the colour of my Calendar Skin to a very specific set of colours. Is this possible, and if so, how do I do that. I am not referring to the set of current colours that you have available in the Pull Down Menu, but rather the ability to input my own colour palette

    • Hello.
      1) At your page currently exist this JavaScript error:

      11:16:51.764 Error: ReCAPTCHA placeholder element must be empty recaptcha__en.js:378:407
      	or https://www.gstatic.com/recaptcha/api2/r20171129143447/recaptcha__en.js:378:407
      	renderRecaptcha/< http://occonnections.org/wp-content/plugins/gravityforms/js/gravityforms.min.js:1:13938
      	each http://occonnections.org/wp-includes/js/jquery/jquery.js:2:2879
      	each http://occonnections.org/wp-includes/js/jquery/jquery.js:2:844
      	renderRecaptcha http://occonnections.org/wp-content/plugins/gravityforms/js/gravityforms.min.js:1:13732
      	gfRecaptchaPoller< http://occonnections.org/:1892:5
      

      Which is seems does not connected to the Booking Calendar and just to the "gravityforms" plugin.

      2) Ok, now about the possible issues of conflict with Booking Calendar.
      Booking Calendar is using bootstrap library for showing mouse over popups dialog, its possible that this can be conflict with some other mouse over popups.

      But I can not find at what page exactly you have inserted the booking form with calendar from the "Booking Calendar" plugin"
      and what pages (after what actions), have some issues with conflicting with Booking Calendar ?
      Can you send links about these, and also can you send screenshot of Booking > Settings General page (full page), to
      support @ wpbookingcalendar.com

      Thank you.

    • Hello.
      Its seems, that this conflict exist if you are used some masked fields in your Gravity form plugin..

      We will make fix in next update 8.1.1 of Booking Calendar relative this conflict issue.

      In your version of Booking Calendar you can make this fix manually.

      Please check more about this here https://wpbookingcalendar.com/faq/conflicts/

      Kind Regards.

Leave a Reply

Your email address will not be published. Required fields are marked *