Support

Technical help board

Check the FAQ first for existing answers before posting new Questions

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.

9,269 thoughts on “Support

  1. Hello,
    we’re using Business Large 5.2.
    We’d need the coupons to be deleted/turned off once used, since we’re using them as “one-time codes”.
    How can we set this behaviour ?
    Thank you.

    • Hello.
      You will be need to make a little fix for having this functionality.
      1) Firstly, please update your version to the latest update 5.4.2
      So will make any customization in the same version. You can request the new update of Booking Calendar on this page: http://wpbookingcalendar.com/request-update/

      2) Please open this file ../{Booking Calendar Folder}/inc/biz_l.php (please make backup of this file, in case if you make some mistake, so you be able to start from begining).

      A) then find this code:

                                if ($entered_code == $coupon->coupon_code)
                                  if ($summ >= $coupon->coupon_min_sum) {
      

      and replace it to this code:

                                if ($entered_code == $coupon->coupon_code)
                                  if ( ( $summ >= $coupon->coupon_min_sum ) && ( ! empty($coupon->coupon_active) ) ) {
      

      B) then find this code (inside content of function get_coupons_discount_info( $summ , $form , $bktype ){):

                                if ($entered_code == $coupon->coupon_code)
                                  if ($summ >= $coupon->coupon_min_sum) {
      

      and replace it to this code:

                                if ($entered_code == $coupon->coupon_code)
                                  if ( ( $summ >= $coupon->coupon_min_sum ) && ( ! empty($coupon->coupon_active) ) ) {    
      

      C) then find this code:

      add_bk_filter('wpdev_get_additional_description_about_coupons', array(&$this, 'wpdev_get_additional_description_about_coupons'));
      

      and replace it to this code:

              add_bk_filter('wpdev_get_additional_description_about_coupons', array(&$this, 'wpdev_get_additional_description_about_coupons'));
              add_bk_action('wpdev_booking_post_inserted', array(&$this, 'wpbc_set_coupon_inactive'));
      

      D) then find this code:

              // Get > Array discount info,   if it can be apply to the specific bk_resource and summ or return FALSE
              function get_coupons_discount_info( $summ , $form , $bktype  ){
      

      and replace it to this code:

              function wpbc_set_coupon_inactive($booking_id, $bktype, $booking_days_count, $times_array, $form = false){
                  global $wpdb;
                  if ($form === false) {
                     $form = escape_any_xss($_POST["form"]);
                  }
                  $coupons = $this->get_coupons_for_this_resource($bktype);
      
                  if ( count($coupons) <= 0) return false;                            // No coupons so return as it is
      
                  $booking_form_show = get_form_content ($form, $bktype);
                  if (isset($booking_form_show['coupon']))
                      if (! empty($booking_form_show['coupon'])) {
      
                              $entered_code = $booking_form_show['coupon'];
                              foreach ($coupons as $coupon) {
      
                                if ($entered_code == $coupon->coupon_code)
                                  if ( /*( $summ >= $coupon->coupon_min_sum ) &&*/ ( ! empty($coupon->coupon_active) ) ) {        
                                     // Set  coupon one time lower
                                     $coupon_active = ( (int) $coupon->coupon_active ) - 1; 
                                     $wp_query = "UPDATE {$wpdb->prefix}booking_coupons SET coupon_active = {$coupon_active} WHERE coupon_id = {$coupon->coupon_id}";          
                                     $wpdb->query( $wp_query );
                                     return  true;
                                  }
                              }
                      }
                  return  false;
              }
                         
      
              // Get > Array discount info,   if it can be apply to the specific bk_resource and summ or return FALSE
              function get_coupons_discount_info( $summ , $form , $bktype  ){
      

      Update the file and test.
      Kind Regards.

  2. Hello there,
    I want to buy your Availability calendar and Booking system. But I want to know whether it can be installed and integrated with a WP Theme.
    Basically, I want to a have a property RENTAL website (WP Theme). My website is a platform for property owners to list their properties. Any host (property owner) registers, logs in and lists his/her property in my website.
    In the property details, it shows property information (images, details, etc) AND Availability Calendar of the property. A customer can see available dates and make a booking. When clicked to book, a booking request is sent both to the property owner and the customer (as a copy).
    Here I would like to know, in your script, how your availability calendar generated/created and linked to a property created by a host ?
    Could you please explain how does it work ?
    OR How to integrate your Calendar and Booking script to my WP Theme ?
    What I want is that, when a property owner creates his property listing, there is a button/menu to automatically create an availability calendar for the property. So that when the property is published then the Availability calendar will also shown in the property page.
    Does your script work like this or does it need integration work by a programmer first?
    Thank you and I am waiting for your reply.
    Regards
    Heru

  3. How do I prevent that users cancel a booking that’s in the past?
    We use the booking system to have resources booked. Payment is done afterwards, we’re not using the payments functionality in this booking system. We take a look at the booking system once a month to see who booked what and arrange payment. This won’t work if people are able to cancel bookings afterwards.

    • Hello.
      Its possible to allow visitors (who made the booking) to cancel their own booking or do not allow.
      If you do not want that your visitors to cancel or edit booking, then just remove the edit and delete booking links from the email template at the Booking > Settings > Emails page.

      Here is one more ability, you can leave those links in the email templates and activate this option “Change hash after the booking is approved:” at the General Booking Settings page in Advanced section. Then your visitors will not be able to edit or cancel the booking, if you approve this booking (of course you do not need to have the edit/cancel link in the “Approval email” template).
      Kind Regards.

      • Thanks!
        However, I do want my users to be able to change/cancel the bookings. This maximizes availability of the resources for other users. When someone who booked can’t make it to the appointment, he can cancel the booking so someone else can book it.
        Also, I would like the system to be self-organizing, meaning I don’t want to approve bookings manually. I just want to be able to see who actually booked once a month, so prevent cancelling/changing when a booking date is in the past.

        I can think of a solution where I have emails of all changes sent to admin by the system, but this would mean a lot of manual work as well to analyse the mails.

        • OK, changing the hash on approval might work, but in that case I need automatic approval functionality at the actual moment of the booking.

          • Hello.
            try to make this fix.
            Please open this file ../{Booking Calendar Folder}/inc/js/personal.js

            then find this code:

                            date.setFullYear( dta[0] , (dta[1]-1) , dta[2] );    // get date
                            original_array.push( jQuery.datepick._restrictMinMax(inst, jQuery.datepick._determineDate(inst, date, null))  ); //add dat
            

            and replace it to this code:

                            date.setFullYear( dta[0] , (dta[1]-1) , dta[2] );    // get date
                            
                    var my_test_date = new Date( wpdev_bk_today[0],(wpdev_bk_today[1]-1), wpdev_bk_today[2] ,0,0,0 );  //Get today           
                    if ( (days_between( date, my_test_date)) < 0 ) {
                        jQuery('.booking_form').html('You can not edit this booking, your booking in the past.');
                    }
                            original_array.push( jQuery.datepick._restrictMinMax(inst, jQuery.datepick._determineDate(inst, date, null))  ); //add date
            
    • Hello.
      the Booking Calendar does not show the search results at this page: http://www.galiescu.com/wprucharter/prova-cerca/
      because you are having 2 search forms (on form in the content of the post and other form in the search widget (at the right side of the page)).
      Also in the search form in content of the page, you do not have the selectbox for the selections of the tags, but at the right side you are having this shortcode, and thats why you are having this issue.

      Please remove the “search availability” widget from that page, and then try to test it again.
      Kind Regards.

  4. We are noticing the booking calendar breaks the rest of our website when permalinks are not set to default. We are wanting the permalinks to be set to “post name”. Will there be any fixes on this?

    • Hello.
      Do you sure that this issue relative to the Booking Calendar? Because plugin does not apply in any case to the permalink structure.
      And what update of Booking Calendar are you using ? ( You can request the new update of Booking Calendar on this page: http://wpbookingcalendar.com/request-update/ )

      Please try to deactivate one by one all your active plugins at the WordPress > Plugins menu. Then retest it again. May be there exist some conflict with some other active plugin.
      Kind Regards.

      • We are sure it is booking calendar as we did test other plugins. Once we tested it again, the same thing happened.

        • Hello.
          What version update are you using (you can check it at the general booking settings page)?
          Also, what exactly issue do you have with perms link structure after activation of plugin ?
          Kind regards.

  5. Hej!

    Right now if I make booking for certain day, it gets disabled for next customer. So I guess it allows only one booking per day. How could I expand this number?

    Im using free version atm
    Ken

    • Hello.
      1) In the Booking Calendar Free version, you can activate this option “Allow unlimited bookings per same day(s)” in the General Booking Settings page at Advanced section.
      2) If you need to have the several independent calendars, then you need to check some paid version of Booking Calendar, which are supporting unlimited booking resources: http://wpbookingcalendar.com/overview/#booking-resources
      3) If you need to make the specific number of bookings per days, then you need to check the Booking Calendar Business Large version, where is possible to make several reservations per specific FULL date(s) by visitors (not time slots). At this version is possible to set capacity of the booking resource, so date(s) in calendar will be available until number of reservations is less then capacity of the booking resource.But in this version is possible to make reservation only for FULL date, not a time slots (time slots in this version only record data in the DB, but do not play any logic in reservation). Please read more info about the booking resources and how to configure them here http://wpbookingcalendar.com/help/booking-resource/

      Kind Regards.

  6. I have the business small single site version 5.4.2. I’m doing a timeslot and there are different hours for different days. Monday-Thursday have half days, Friday-Sunday are full days. So I have 2 timeslot options for half days (9-14, 16-23:59) and 1 for a full day. If I select the full day timeslot 9-23:59 it won’t show the partially booked icon in the backend ‘Add booking’ form. But on the front end it shows it as partially booked, even if I book the other 2 timeslot options for that day.

    Is this a bug or am I doing something wrong? Also it’d be really handy to have an option to select multiple timeslots as it currently forces you to select only one…

  7. I am just trying to make dates “unavailable in the future”. I have only been able to do this 31 days in advance, but I really want to select specific dates. Help!

    9DOTUIFTlzhg

  8. How do i block off time. Example i have appointments all morning on the 15th so i need to block those times off. I have the calander set up in 30 minute booking time frame.

    • Hello.
      You need to make the “blank” bookings for the each specific timeslots to block those times.
      For more fast making these blank bookings, you can add temporary timeslots (at the Booking > Settings > Fields page) that will cover all this morning time, and then make the booking using this new timeslot, and after this you can remove this timeslot from the booking form at the Booking > Settings > Fields page.
      Kind Regards.

Leave a Reply

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

* Copy this password:

* Type or paste password here:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>