Support

Technical help board
Important.  Check FAQ first for existing answers before posting new Questions.
Note.  You can check archive 1 and archive 2 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!

    I just bought the Business Small version and I'm trying to integrate it nicely. To do so, I would like to customize the inclusion of the availability calendar and the form in my website using AJAX.

    To do so, I created an AJAX callback in `functions.php` and I would like to execute the shortcode and get the result to my page. I used wordpress' function `do_shortcode('[bookingcalendar type=1]')` but the shortcode is not getting executed, I only get "[bookingcalendar type=1]" in the AJAX response.

    Any ideas? Thanks a lot.

    • Hello.
      The ability to run do_shortcode, possible only at the beginning of the WordPress generation page and not in the Ajax request.

      Check more here http://wordpress.stackexchange.com/questions/53309/why-might-a-plugins-do-shortcode-not-work-in-an-ajax-request

      WP Ajax runs both public as well as closed calls via admin.php. This means that you don't have access to the whole wp environment, such as do_shortcode(), which is inside /wp-includes/shortcodes.php.

      You can try to use this code:

      $booking_resource_id =1;
      $calendar_count = 1;
      do_action('wpdev_bk_add_calendar', $booking_resource_id , $calendar_count);
      

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

  2. Hello.

    I have 2 - hopefully - easy questions. I've scoured the previous posts but not seeing anything that helps.

    1. Which CSS effects the rollover and selection colour on the dates (currently a purplish colour)?
    2. Can I have the name/address form section be in a 2 or 3 column set up? It looks great on mobile phone, but looks too small on the big screen.

    Thanks!

    • Hi there.
      I was able to track down the CSS for the colouring.
      Still wondering if you can help with the 2/3 column bit though. Or is there a way to have the calendar and all the content to be centre (left / right) of the page? Currently it is all left aligned.

      Thanks

      • Hello.
        Just was replied to your previous comment.
        Also, probably you can also test resetting your booking form configuration at the Booking > Settings > Fields page to "2 columns Form template" (its at the top toolbar). so in this case your booking form will be resetting for having calendar at the left side and all form fields at the right side.
        Kind Regards.

    • Hello.
      1) Its defined in the "calendar skin" CSS files. Please read more about how to customize calendar skin files here: http://wpbookingcalendar.com/faq/change-skin-and-colors/
      2) Yes, its possible in the any paid versions of Booking Calendar.
      I can suggest that you configure your form fields in a way like this:

      ...
      <div style="float:left;margin-right:10px;">
        Country (required):  [country]
      </div>
      <div style="float:left;">
        City (required):  [text* city]
      </div>
      <div style="clear:both;"></div>
      <div style="float:left;margin-right:10px;">
         Address (required):  [text* address]
      </div>
      <div style="float:left;">
        Post code (required):  [text* postcode]
      </div>
      <div style="clear:both;"></div>
      ...
      

      Kind Regards.

  3. I am considering using this plugin or the paid version depending if it has the features I need. What I am using this for is for booking use of a private airplane. So let's say Jim, John, Bob, and Steve all own an airplane together. They want to login to a private website and use a booking system to book their dates that they would like to use the plane. I see that date ranges are able to be highlighted in certain colors, can these colors be changed so that each of the 4 plane owners are highlighted in a different color?

    • Hello.
      Unfortunately, its does not possible to highlight booked dates in the different color depend from who was made the booking.
      You can see in the admin panel only at the "Calendar Overview" page the info about who made the booking on specific dates.
      You can test Booking Calendar live demos at this page http://wpbookingcalendar.com/demo/ to be sure in functionality and do not have misunderstanding.
      Kind Regards.

      • Is it then possible to add legend items, so that instead of booked, partially booked, and pending I could add names and color code them appropriately?

        • Hello.
          In general it's an easy to make customization of "Legend items" under calendar.
          But it's still does not possible to customize the different colors for booked dates. So you can only can customize the source code to have custom legend items. But in calendar you still will have bookings with 2 colors - pending and approved.
          Kind regards.

  4. Hi, I love the plugin, just one question...

    When I go to add a new booking, I would like the checkbox that reads "Send email notification to customer about this operation" to be unchecked.

    It is currently always checked and I would like to have this reversed.

    Thanks in advance for your assistance!

    • Hello.

      Please make this fix.

      Please open this file ../{Booking Calendar Folder}/lib\wpdev-booking-class.php

      then find this code:

                    <input name="is_send_email_for_new_booking" id="is_send_email_for_new_booking" type="checkbox"
                        checked="CHECKED" 
                        value="On" 
                         />
      

      and replace it to this code:

                    <input name="is_send_email_for_new_booking" id="is_send_email_for_new_booking" type="checkbox"
                        value="On" 
                         />
      
      • I would like to make the same change but, I'm having trouble finding the file you show above "../{Booking Calendar Folder}/lib\wpdev-booking-class.php".

        Thanks

        • Hello.
          If you are using the Booking Calendar Free version so then this file is located here ../wp-content/plugins/booking/lib/wpdev-booking-class.php
          In other versions of Booking Calendar the name of Booking Calendar folder, can be different (instead of "booking" can be "booking.bs.6.1" , etc...).
          Also please read more info about how to edit the files from WordPress admin panel, here: http://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/
          Kind Regards.

  5. Hello. I'm trying to set up a booking calendar for a masseuse. I want the cost to be dependent on duration. For example, 60min: $50, 90min: $100, 120min, $120
    How can I set this up?

    • Hello.
      Because your cost is different for the different amount of time,
      for example for 60 minutes its $50 and for 120 min. its $120 and not the 100 (50*2), so then such type of cost configuration possible in the Booking Calendar Business Medium and higher versions if you will use time duration selection as drop-down list. Please read more about this feature here: http://wpbookingcalendar.com/overview/#additional-cost

      So for example, let say you are having the times selections configuration at the Booking > Settings > Fields page in a way like this:

      <p>Select  start  time: [select starttime "11:00" "12:00" "13:00" "14:00" "15:00" "16:00" "17:00"]</p> 
      <p>Select time duration: [select durationtime "1 hour@@01:00" "2 hours@@02:00" "3 hours@@03:00" "4 hours@@04:00" "5 hours@@05:00" "6 hours@@06:00" "7 hours@@07:00"]</p>
      

      And then you can configure additional cost for the different time duration at the Booking > Resources > Advanced cost page.

      Kind Regards.

Leave a Reply

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

seven + ten =