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,

    We've just noticed that in version 7, when we use the [visitorbookingpayurl] shortcode in a payment request email, the link is reproiduced in full, ie.

    Please make payment on this page: http://glamperrv.co.uk/edit-my-booking/?booking_hash=5cdc0a84d845ae0365363bc6dd793c17&booking_pay=1

    Historically, the email produced a shortened version as follows:

    Please make payment on this page: link

    where 'link' was an html a tag with the full booking hash included.

    Is there a way to revert to the more human friendly link?

    Thanks,

    Pete

    • Hello.
      You can simply use this code:

      <a href="[visitorbookingpayurl]" target="_blank" rel="nofollow">here</a>

      Kind Regards.

  2. Hi there,

    We are having an issue where we receive the following error when submitting a booking:

    Error! Email had not sent. Some error occuered. Could not instantiate mail function.Error!

    It appears that the email sends but the error is produced anyway.

    Thanks,
    Evan

    • Hello.
      Booking Calendar is use standard WordPress wp_mail function for sending emails. This function can be overridden by some other plugin. If you are using some plugin for sending emails, so then please check settings of such plugins.

      In case if you do not receive emails at all.
      1) Please try to set in the field "From" instead of visitor email shortcode, your email. The same email that you set in the field "To".

      2) Sometimes mail servers block emails, if the address "From" different from the domain of website, from where this email was sending. Its not really depend from the Booking Calendar. So please open the Booking > Settings > Emails page and recheck that field "From", its have to the same as your website domain. For example: info@your-server.com and not like this your_email@gmail.com

      3) If you do not receive emails at all in any cases then please check this troubleshooting instruction http://wpbookingcalendar.com/faq/no-emails/ (the most probably you need to check the point #5 from this instruction).

      4) Otherwise you will need to check error.log and mail.log files in your server configuration relative to searching about the reason of not sending emails. If you can not find such files in your server configuration please contact support of your hosting company.
      Kind Regards.

  3. Hi,

    Can you have 2 resources that have 2 different sets of days and times.

    eg

    Doctor is at 2 medical centres during a week. Mon, Wed at A and Tue, Thur and Fri at B
    Can the times be different as well?

    I have the SB version.

    • Hello.
      Its possible in the Booking Calendar Business Medium or higher versions.
      In these versions you can define availability for specific booking resources based on season filters.
      Please check more here: http://wpbookingcalendar.com/overview/#availability

      Additionally in these versions you can define with conditions in booking form the different time-slots for the different week days.
      Please check more here: http://wpbookingcalendar.com/overview/#times-week-days

      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.

  4. Hi there , I run a small hotel and my payment terms are : Deposit & 2 or 3 equal payments before arrival is there a way to cover this , by which version of your product ?

    • Hello.

      The payment request for payment some sum of booking possible only to by manual sending payment request. Automatic sending payment request is snot supporting. Sorry.

      So if you need to charge (at payment system) only part of the cost of the booking - deposit cost, then such feature available in the Booking Calendar Business Medium and higher versions. Please read more about this feature here: http://wpbookingcalendar.com/overview/#deposit

      Here is little instruction about deposit configuration and sending payment request for the rest of the sum.

      Please read firstly this article about the correct configuration of the "payment link" :
      http://wpbookingcalendar.com/faq/configure-editing-cancel-payment-bookings-for-visitors/

      Then open the Booking > Settings > Emails page and configure and set active the "Payment request" email.

      Now open the General Booking Settings page and set checked this option: "Deposit payment:" at the "Costs" section.
      You can open the Booking > Resources >Cost and rates page and by clicking the"Deposit amount" button configure the deposit amount value.
      This cost will be show in the payment form, after visitor is made the reservation. So probably its cost will be smaller than full amount. And your visitors can make the payment of that amount.
      At the admin panel at the booking listing page for the specific booking you will see in the cost field the FULL cost, but inside of the "notes section" (you can activate it by pressing the note button at the right side of the each section), you will see the description similar to this:
      Total cost: $135.00 /deposit:$54.00, balance: $81.00/ - 11.11.2017

      If you are want to request from the visitor to pay the rest of the sum, you are need to make these steps:
      1) Edit the cost of the booking, and enter the sum, which will show at the payment form. You are need to change the cost and then press the save button to save the new cost.
      2) Press the send payment request button to send the email with link to the payment form for the specific booking.

      Kind Regards.

  5. Hello,

    Somehow (after update to 7?), the [moderatelink] shortcode does not work anymore in the email notification.
    I had to reset the SMTP to send some emails anyway, still the moderatelink does not work.

    • Hello.
      You have to be logged in into your WordPress admin panel. Then after this you can click on moderate booking link for approving it.
      If you still will have this issue, please send the link which you clicked, so then I will check about any issues there.
      Kind Regards.

  6. Hi, we just upgraded to the lastest version a month ago, and now the bookings are being calculated by number of days, even when calculate by number of nights is selected.

    What info do you need from me to investigate further?

    • Hello.

      Can you try to switch from the "cost per 1 night" to the "cost per 1 day" at the General Booking Settings page and Cost section ?
      Also please uncheck this option: "Time impact to cost" at the General Booking Settings page in Cost section.

      then please open the Booking > Resources > Cost and rates page and click on "Valuation days" button.

      After this add this new one cost settings:

      Together "LAST" = 0 EUR per selected date.

      where LAST its reserved term for definition of check out date. So system will make calculation like you configured cost per nights.

      Kind regards.

  7. Hi,

    I have the small business version of WP Booking Calendar with two problems when editing bookings.

    1. I have "Change hash after the booking is approved" checked, however, I have been testing and I can still edit bookings after approval with the previous hash link.

    2. I have "Checking to prevent double booking, during submitting booking" checked but when I visit an edit booking link and choose dates that are already booked, the error does not show up and bookings can be overwritten.

    Thanks for any assistance.

    • More context for #2: Other errors do appear (e.g. empty field for required), it just doesn't seem to trigger the double booking check.

      • Hello.

        1) Yes, you are right. Its seems like an issue. Its will be fixed in next update of plugin.
        For fixing this issue in actual version, you need to make this small fix.
        Please open this file ../{Booking Calendar Folder}/core/admin/page-email-approved.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_send_email_approved( $approved_id_str, $is_send_emeils, $denyreason = '' ) {
            
            global $wpdb;
            $sql = "SELECT * FROM {$wpdb->prefix}booking as bk WHERE bk.booking_id IN ({$approved_id_str})";
            $result = $wpdb->get_results( $sql  );
        
            foreach ( $result as $res ) {
            
                $booking_id = $res->booking_id;
                $bktype = $res->booking_type;
                $formdata = $res->form;
                                                
                $previous_active_user = apply_bk_filter( 'wpbc_mu_set_environment_for_owner_of_resource', -1, $bktype );    // MU
        

        and replace it to this code:

        function wpbc_send_email_approved( $approved_id_str, $is_send_emeils, $denyreason = '' ) {
            
            global $wpdb;
            $sql = "SELECT * FROM {$wpdb->prefix}booking as bk WHERE bk.booking_id IN ({$approved_id_str})";
            $result = $wpdb->get_results( $sql  );
        
            foreach ( $result as $res ) {
            
                $booking_id = $res->booking_id;
                $bktype = $res->booking_type;
                $formdata = $res->form;
                                                
                $previous_active_user = apply_bk_filter( 'wpbc_mu_set_environment_for_owner_of_resource', -1, $bktype );    // MU
                
                make_bk_action( 'booking_aproved', $res, '' );                          // Check for ability to change HASH during approving booking    //FixIn: 7.0.1.35
        

        2) To fix this issue, please make this fix.
        Please open this file ../{Booking Calendar Folder}/core/lib/wpbc-booking-new.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:

            if ( ( ! $is_edit_booking ) && 
                 (! wpbc_check_if_dates_free( $bktype, $formdata ,$dates_in_diff_formats, $start_time, $end_time ) ) 
               ) { 
               die;         
            }
        

        and replace it to this code:

            $exclude_bookings = array();                                                //FixIn: 7.0.1.36
            if ( $is_edit_booking !== false ) {
                $exclude_bookings[] = $is_edit_booking['booking_id'];
            }
            
            //Here we need to check for double booking for the same sessions
            if ( // ( ! $is_edit_booking ) &&                                           //FixIn: 7.0.1.36
                 (! wpbc_check_if_dates_free( $bktype, $formdata ,$dates_in_diff_formats, $start_time, $end_time , $exclude_bookings ) )    //FixIn: 7.0.1.36
               ) { 
               die;         
            }
        

        then find this code:

        function wpbc_check_if_dates_free($bktype, $formdata ,$dates_in_diff_formats, $start_time, $end_time ) {
        

        and replace it to this code:

        function wpbc_check_if_dates_free($bktype, $formdata ,$dates_in_diff_formats, $start_time, $end_time, $exclude_bookings = array() ) {           //FixIn: 7.0.1.36
        

        then find this code:

            $sql_req =  "SELECT DISTINCT dt.booking_date
                
                                FROM {$wpdb->prefix}bookingdates as dt
        
                                INNER JOIN {$wpdb->prefix}booking as bk
        
                                ON bk.booking_id = dt.booking_id
        
                                WHERE   {$approved_only} {$dates_sql_where} {$trash_bookings} AND bk.booking_type IN ({$bktype})
                                 
                                ORDER BY dt.booking_date" ;
        

        and replace it to this code:

            if ( ! empty( $exclude_bookings ) ) {                                       //FixIn: 7.0.1.36    
                $exclude_bookings = implode( ',', $exclude_bookings );
                $exclude_bookings_sql = " AND ( bk.booking_id NOT IN ( {$exclude_bookings} ) ) ";
            } else {
                $exclude_bookings_sql = '';
            }
            
            // Get all booked dates ////////////////////////////////////////////////////
            //FixIn: 7.0.1.36    
            $sql_req =  "SELECT DISTINCT dt.booking_date
                
                                FROM {$wpdb->prefix}bookingdates as dt
        
                                INNER JOIN {$wpdb->prefix}booking as bk
        
                                ON bk.booking_id = dt.booking_id
        
                                WHERE   {$approved_only} {$dates_sql_where} {$trash_bookings} {$exclude_bookings_sql} AND bk.booking_type IN ({$bktype})
                                 
                                ORDER BY dt.booking_date" ;
        

        Kind Regards.

  8. Hello,
    This plug in got me through the holiday season in a splendid manner - THANK You!
    Now that I have new events and bookings, the email send feature has stopped sending notifications of bookings and payments. I have not changed a thing. Any help would be appreciated.

    • Hello.
      Please note, Booking Calendar is sending emails in the same way by using standard WordPress wp_mail function. This function can be overridden by other plugins.
      Please check bellow most common reasons of not sending emails issue:

      1) Please try to set in the field "From" instead of visitor email shortcode, your email. The same email that you set in the field "To".

      2) Sometimes mail servers block emails, if the address "From" different from the domain of website, from where this email was sending. Its not really depend from the Booking Calendar. So please open the Booking > Settings > Emails page and recheck that field "From", its have to the same as your website domain. For example: info@your-server.com and not like this your_email@gmail.com

      3) If you do not receive emails at all in any cases then please check this troubleshooting instruction http://wpbookingcalendar.com/faq/no-emails/ (the most probably you need to check the point #5 from this instruction).

      4) Otherwise you will need to check error.log and mail.log files in your server configuration relative to searching about the reason of not sending emails. If you can not find such files in your server configuration please contact support of your hosting company.

      Kind Regards.

Leave a Reply

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