Support Archive

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

  1. Hi there,

    Would there be any help to validate the phone number in the form.
    We need to set it to 11 digits.

    Many Thanks in advance

    • Hello.
      Please open this file ../{Booking Calendar Folder}/js/client.js

      Then find this code:
      // Recheck for max num. available visitors selection /*if ( element.name == ('phone'+bk_type) ) { // we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number - See more at: https://www.w3resource.com/javascript/form/phone-no-validation.php#sthash.U9FHwcdW.dpuf var reg = /^\d{10}$/; var message_verif_phone = "Please enter correctly phone number"; if ( inp_value != '' ) if(reg.test(inp_value) == false) {showErrorMessage( element , message_verif_phone);return;} }*/
      and uncomment it, like this:
      // Recheck for max num. available visitors selection if ( element.name == ('phone'+bk_type) ) { // we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number - See more at: https://www.w3resource.com/javascript/form/phone-no-validation.php#sthash.U9FHwcdW.dpuf var reg = /^\d{10}$/; var message_verif_phone = "Please enter correctly phone number"; if ( inp_value != '' ) if(reg.test(inp_value) == false) {showErrorMessage( element , message_verif_phone);return;} }

      Please note, its validate form field, like this:
      <p>Phone:<br />[text phone] </p>

      Validation rule - validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number.

      If you need to have 11 digits, please replace this:
      var reg = /^\d{10}$/;
      to this
      var reg = /^\d{11}$/;

      Important! We can not start, some personal customization or custom development and do not provide this service right now.
      Please note, if you will modify the source code (including this fix) of the Booking Calendar, we will not guaranteed the correct work of plugin and do not support it. Thank you for understanding.

  2. HI,

    I have bought business medium version of your plugin and have activated on my site. This installation was overridden by another installation by mistake and I have lost all my work. Now I have freshly installed the wordpress again.

    Please advise how to get my plugin activated in my fresh installation.

    Thanks,
    Bala

  3. Hi I have a datepic error as described in the FAQ which is fixed by commenting out the script src. However, while this does make the booking calendar work it stops the menus and slideshow from working. Is there a way around this?

    Many thanks.

    • Hello.
      You can make a little fix for load JavaScript files of Booking Calendar , only at pages with Booking forms (if you know URL of these pages).
      Please open this file ../booking/lib/wpbc-scripts.php
      then find this code:

      add_action( 'wp_enqueue_scripts', 'wpbc_load_js_on_client_side', 1000000000); // Enqueue Scripts to All Client pages

      and replace it to this code:

      if ( ( in_array( $_SERVER['REQUEST_URI'], array( '/page1/', '/page2/', '/page3/', '/page4/', '/page5/' ) ) ) ) { add_action( 'wp_enqueue_scripts', 'wpbc_load_js_on_client_side', 1000000000); // Enqueue Scripts to All Client pages }

      where '/page1/' ... '/page5/' its the full terms of your pages with the booking form. So its mean that your are inserted the booking forms into the pages like these:

      https://www.server.com/page1/
      https://www.server.com/page2/
      https://www.server.com/page3/
      https://www.server.com/page4/
      https://www.server.com/page5/

      2) The same thing you can do with line about loading CSS (in the same file):

      find this code:

      add_action( 'wp_enqueue_scripts', 'wpbc_load_css_on_client_side' , 1000000000); // Enqueue Scripts to All Client pages

      and replace it to this code:

      if ( ( in_array( $_SERVER['REQUEST_URI'], array( '/page1/', '/page2/', '/page3/', '/page4/', '/page5/' ) ) ) ) { add_action( 'wp_enqueue_scripts', 'wpbc_load_css_on_client_side' , 1000000000); // Enqueue Scripts to All Client pages }

      PS Otherwise, if its will not work, please contact the developer of your theme, about resolving this issue in the source files of your theme.

      Kind regards.

      • Thanks for that. I'll give it a try and let you know how I get on.

        • Sadly not.. It just gives me the following:

          Calendar is loading...
          01
          - Available
          01
          - Booked
          01
          - Pending

          • Error is:

            Uncaught ReferenceError: visible_booking_id_on_page is not defined?page_id=29:211 (anonymous function)jquery.min.js:2 n.Callbacks.jjquery.min.js:2 n.Callbacks.k.fireWithjquery.min.js:2 n.extend.readyjquery.min.js:2 I

            • Hello.
              It's means that customization was making in wrong way, because it's seems that JS and CSS files of booking calendar is not loading. Please reread instruction about the customization - section about the URL of your website.

          • Hello.
            You need to be sure that at the page with booking calendar is loading JS and CSS files of booking calendar and there are no JS error(s), which can be a reason of overloading jQuery library. It's means loading jQuery only once.

            • I think we cross-posted. Did you see the post where the following error is reported?

              Uncaught ReferenceError: visible_booking_id_on_page is not defined?page_id=29:211 (anonymous function)jquery.min.js:2 n.Callbacks.jjquery.min.js:2 n.Callbacks.k.fireWithjquery.min.js:2 n.extend.readyjquery.min.js:2 I

              Do I need to load an alternative header for pages that load the booking calendar as defined in your fix where the jquery is removed? (sorry - I have a very limited understanding of how jquery works)

              • Hello.
                1) Booking Calendar require that no any JavaScript errors exist at the page. Otherwise calendar will not show.
                2) As far as I am understood from your previous post, the issue with Booking Calendar was relative to this: https://wpbookingcalendar.com/faq/loading-jquery-twice/
                If yes, then you need to comment the line of loading jQuery second time in header.php of your theme.
                3) In one of my comments, previously I was trying to say how to not load the Booking Calendar JS and CSS files on the pages, where no Booking Calendar forms. But probably I was wrong. Please restore wpbc-script.php file to the original source.

                4) You need to comment loading of the jQuery ( in your theme header.php file) second time only on the pages, where you are having the Booking Calendar forms. So at this page calendar will load, but your menu still will not work. But at all other pages its will work.

                Otherwise you need to contact the developer of your theme, about issue of not working menu, when you load the default jQuery library from the WordPress installation and not the jQuery library from the theme itself.

                Kind Regards.

                • Ah, I see. Yep, that makes sense. I'll see if there is another way to run the menus, etc without calling Jquery. Thanks for your help.

                  Tim

  4. I am having an issue of Gravity Forms content not showing up on my website unless I deactivate your plugin. Both plugins are up to date and seem to conflict with each other. Is there a workaround for this problem or an update coming to address it? Thanks!

  5. Hi,

    I just updated the plugin. But the calendar does not load. I have this error in the error console:

    Horodatage : 03/03/2015 07:35:31
    Erreur : SyntaxError: missing ; before statement
    Fichier Source : https://www.gites-en-alsace.com/tarifs-reservation/tarifs-reservation-du-gite-veilleur/
    Ligne : 323, Colonne : 250
    Code Source :
    y_filters[6][ avalaibility_filters[6].length ]= [ ["2.0"],] ]; init_datepick_cal('6', date_approved_par, 2 , 6, false

    Thank you for your help.

    Kevin H.

    • Hello.
      Its seems like some error in the Season filters. Please open the Booking > Resources > Filters page and recheck for the any mistakes or some wrong things there.
      Also please recheck availability at the Booking > Resources > Availability page for the booking resource with ID = 6
      Kind Regards.

      • Most probably, that you was created the "Season filter" at the Booking > Resources > Filters page but do not selected any days for that specific season filter.
        Kind Regards.

  6. Hi,

    Is there any solution to customize the search result template ? (business large) It's very difficult to modify something in biz_l.php...

    I see the [booking_info] shotcode in admin order to display the excerpt of my room/article, but it don't work, how to d othat please ?

    Thanks in advance

    • Hello.
      All availbale shortcodes that possible to use in the Search Results you can find at the Booking > Settings > Search page at the help section near specific search results form.

      Pleas note, if you do not see excerpt section of your post, in search results, then please recheck that you published this post and this post contain the booking form shortcode and of course this post have to have excerpt section. Then open the Booking > Settings > Search page and click on "Clear cache" button at the bottom of the page. You have to see how many posts are found and system will get new data from each posts. Then tests it.
      Kind regards.

      • Sorry, but what do you mean by "this post have to have excerpt section" ? an example ? How to include an excerpt section in a post ? any screenshot please ?

        I only know the function who's displaying an excerpt on archive, blog and search page...

        But in our case, I don't know how to activate any excerpt... please help !

        thanks

  7. Hi,

    When I try to modify the standard form booking in admin panel, i can't save the changes, the button to save dosen't work !

    What can I do please ?

    Thanks in advance

    • Hello.
      Please do not use the absolute links (URLs) in your booking form. Probably your server have some security checking about not ability to save such data.
      Also please recheck that you do not use some non standard symbols.
      Please reset your booking form to the one of standard templates and save it. Then try to change this form step by step and make saving during each chnages. A you can find what exactly is block saving of your form, that you are having now.
      Kind regards.

        • Hello.
          From your screenshot I can see that you are trying to save custom form with name "test".
          Please note, during saving, page is reloading and by default in this situation is selected "Standard" form. Probably you just do not selected your "test" custom form to see the saved data?

          • Sorry but I'm using Firebug and console, I can see that the button does'nt work at all

            Could you have a look please ? I can give you the url website and my credentials

            • Could you answer please ?

              Sorry but if I can't customize and save the form booking, I would ask for refund !

              • Hello.
                Sorry for delay.
                Please send the link and details to the support @ wpbookingcalendar.com
                Kind regards.

                  • Hello.
                    Yes, thank you. I was replied to your email. Please recheck it (if you do not see it in inbox please check your spam folder).
                    Kind Regards.

  8. Hi,

    I am wondering how to change the font color to white in the form descriptions on my booking page?

    Where do i find that setting?

    Thanks!

    • Hello.
      Can you send the link to that page?
      Kind regards.

  9. Hello,

    I am looking for wordpress plugin booking calendar. I rent two cottages where I need two colors for occupied terms for each cottages.
    I now have for occupied terms the first cottage yellow color and for a second cottage blue color. When ordering the same term for the first
    or second chat I have green color see. annex email.Next, I need to display the calendar tab from occupied terms here and view a calendar of 12 months.
    Can this your plugin please ?

    Thanks for the answer

    Pavel

    • Hello.
      The booking calendar have the standard booking workflow, which is different from the description in your comment.
      In the paid versions of booking calendar you can have the different booking forms with calendars for the each of your properties. So it's not inside of one calendar. You can have the 2 different calendars with booking forms for the each of your properties. Please read more here https://wpbookingcalendar.com/overview/#booking-resources

      Also please retest this functionality in the live demo to be sure in functionality.
      Kind regards.

  10. Hello!
    Could you please help me:
    I put php code in the page of my website but unfortunately I see the message "Calendar is loading ... " at the place where theoretically should be the calendar. below this message is fields : names, last names and etc.

    I will be very gratefull for your help!

    Thanks
    Yulia

    • Hello.
      Please recheck your page for the any JavaScript errors and try to fix them. You can check for the common errors at the troubleshooting section at the FAQ: https://wpbookingcalendar.com/faq/

      If you still will have this issue, please send the link to the page with that booking form, we will check it.
      Kind Regards.

      • Hello!thanks for your fast reply.
        I checked and i did not find any errors with Java Script.

        And i still see message "Calendar is loading …". Could you please help me?
        I use free version.Link on website: https://percheno.metalnikov.com/#1

        Thanks in advance!
        Yulia

        • Hello.
          You are having this JavaScript errors at your page:
          Error: SyntaxError: expected expression, got '>' Source: https://percheno.metalnikov.com/wp-content/themes/perche_no/js/contact.js Line 7, number15 Source code: if(!$this->Validate())

          and this:
          Error: SyntaxError: expected expression, got '<' Source: https://percheno.metalnikov.com/wp-content/themes/perche_no/jquery-1.11.1.min.js Source code: <html lang="en">
          and
          Error: ReferenceError: visible_booking_id_on_page is not defined Source: https://percheno.metalnikov.com/#1 Line: 657

          Relative to the 2 first errors, please contact the support (developer) of your actual theme fo fixing of those errors.

          Relative to the 3rd error. Its also relative to your theme.
          Please recheck the header.php file from your actual theme.
          this file have to have this code:
          <?php wp_head(); ?>
          before this:
          </head>
          Its standard rule for the themes.

          Kind Regards.