Important!!! Check actual Support Forum, if you need to ask a Questions.
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: https://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.
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
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: https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/
Kind Regards.
Thanks!!
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 https://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.
hello jesse i am also designing or working for similar app, have u reached to any solution with this plugin.
please let me know
thanks
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: https://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):<br /> [country]
</div>
<div style="float:left;">
City (required):<br /> [text* city]
</div>
<div style="clear:both;"></div>
<div style="float:left;margin-right:10px;">
Address (required):<br /> [text* address]
</div>
<div style="float:left;">
Post code (required):<br /> [text* postcode]
</div>
<div style="clear:both;"></div>
...
Kind Regards.
Awesome once again.
Got it. Cheers.
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.
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.
Unfortunately I tried that already without success. The function just doesn't return anything (that is printable). I also tried including wp-load.php in order to load more resources, but nothing changed. Any ideas?
Hello.
This function does not return value, after calling that function its have to echo data.
Please note, all this info is undocumented and not tested (its hack), so possible some issues.
Kind Regards.
Ok, I tried that but it only return '5', which corresponds to my booking resource ID.
My function looks like this at the moment (bear in mind that I tried several things, so the code is a bit messy).
Hello.
Its weird, this function $booking_form = apply_bk_filter('wpdevbk_get_booking_form', $room_id , 1 );
must not return ID of booking resource but entire booking form with calendar and form fields.
Try to test, instead of your variables, set direct values, like $booking_form = apply_bk_filter('wpdevbk_get_booking_form', 5 , 1 );
debuge($booking_form); //show debug info about variable...
to check what exactly its return...
Kind Regards.
Using this javascript code with your code:
```
$.post("https://website/wp-admin/admin-ajax.php", data, function(response) {
console.log(response);
$('#calendar-target').html(response);
});
```
I get this response:
```Array
(
[0] => 5
)
jQuery(".ajax_respond_insert").css("display","block"); jQuery(".ajax_respond").css("display","block"); ```
Hello.
Yes you are right, just retested it.
Its because in the Ajax request have not created one object.
So please use instead of above code this code:
You can even use this code, now:
$wpdev_bk = new wpdev_booking();
$room_id = intval($_POST['room_id']);
$booking_form = do_shortcode('[bookingcalendar type='.$room_id.']');
echo $booking_form;
Kind Regards.
I added several bookings on my admin page, they show up in the admin tool exactly like all others, but on my life website they do not. Why?
Hello.
If you do not see the booked dates in calendar at the front-end, please open the General Booking Settings page and in the "Advanced section", please be sure that you have not activated this option: "Allow unlimited bookings per same day(s):". This option must be unchecked. If its checked, please uncheck it and update the settings.
If you still will have this issue, please recheck for the any cache plugins, like "WP Super Cache" or "W3 Total Cache". If you are using someone, please deactivate it or add the exception to the page with booking form for do not cache this page(s).
Kind Regards.
Hi,
On my booking form (free version), the fields of the form have too much space between them. (check https://chotte.ch/reserver)
How can I fix it ?
I checked the css file (booking/css/client.css/), can't find witch part I have to reduce.
Thanks a lot !
Cheers
But doing this means that users’ requests for reservations also display as “approved" by default.
Is there any way to have the imported reservations appear as “approved” by default while making user-requested reservations either display in the calendars as “pending” or not display at all?
Hello.
If you need to auto approve the bookings, during importing the events from the Google Calendar, then please make this fix.
Please open this file ../{Booking Calendar Folder}/lib/wpbc-gcal-class.php
$booking_id = apply_bk_filter('wpbc_add_new_booking_filter' , $submit_array );
sendApproveEmails($booking_id,1);
global $wpdb;
$update_sql = "UPDATE {$wpdb->prefix}bookingdates SET approved = '1' WHERE booking_id IN ({$booking_id});";
if ( false === $wpdb->query( $update_sql ) ){
// Error
}
Kind Regards.
How do I make a pending, cancelled booking unmarked in the calendar without deleting it?
Cannot seem to find how to do that.
I am not using the auto-cancellation feature that does not seem to work for me.
Kind Regards
Kennet
What I mean is that I don¨t want to delete the customer data.
But maybe that is not possible?
Because it would be nice to be able to connect a specific customer to a new booking request.
So, this will be for the suggestion of future development - if possible.
Hello.
In next update 6.2 will be possible to not completely delete the booking but move the booking to the "Trash". Its will release days in calendar, so its will be possible to make new bookings by visitors. You can contact to support @ wpbookingcalendar.com about ability to get pre-release update 6.2 If you are using paid version, then please send your order number of purchase Booking Calendar.
Kind Regards.
Hi, I'm having a strange issue here. When I navigate to the page where my booking calendar exists, it displays correctly. Then, if I navigate to a different page and then back to the booking calendar page, I receive this error:
If I refresh the page, the error goes away and the calendar displays again.
Any idea why this is happening? I only have one booking calendar configured, so the FAQ for this error message doesn't really help with my specific issue, thanks.
Hello.
Probably your actual theme or some other plugin is making some type of caching page, so we are getting several same calendars at the page. Please recheck in your theme about any cache settings and if possible deactivate it at the page with booking form.
Kind regards.
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: https://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.
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: https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/
Kind Regards.
Thanks!!
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 https://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.
hello jesse i am also designing or working for similar app, have u reached to any solution with this plugin.
please let me know
thanks
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: https://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):<br /> [country] </div> <div style="float:left;"> City (required):<br /> [text* city] </div> <div style="clear:both;"></div> <div style="float:left;margin-right:10px;"> Address (required):<br /> [text* address] </div> <div style="float:left;"> Post code (required):<br /> [text* postcode] </div> <div style="clear:both;"></div> ...
Kind Regards.
Awesome once again.
Got it. Cheers.
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 https://wordpress.stackexchange.com/questions/53309/why-might-a-plugins-do-shortcode-not-work-in-an-ajax-request
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.
Unfortunately I tried that already without success. The function just doesn't return anything (that is printable). I also tried including wp-load.php in order to load more resources, but nothing changed. Any ideas?
Hello.
This function does not return value, after calling that function its have to echo data.
If you need to get "return" then try this:
$booking_id = 1; $calendar_count = 1; $booking_form = apply_bk_filter('wpdevbk_get_booking_form', $booking_id , $calendar_count ); echo $booking_form;
Please note, all this info is undocumented and not tested (its hack), so possible some issues.
Kind Regards.
Ok, I tried that but it only return '5', which corresponds to my booking resource ID.
My function looks like this at the moment (bear in mind that I tried several things, so the code is a bit messy).
```function ajax_booking_shortcode() {
define('WP_USE_THEMES', false);
require(ABSPATH . '/wp-load.php');
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
@header('X-Robots-Tag: noindex');
send_nosniff_header();
nocache_headers();
$room_id = $_POST['room_id'];
$booking_form = apply_bk_filter('wpdevbk_get_booking_form', $room_id , 1 );
echo $booking_form;
wp_die();
}```
Hello.
Its weird, this function
$booking_form = apply_bk_filter('wpdevbk_get_booking_form', $room_id , 1 );
must not return ID of booking resource but entire booking form with calendar and form fields.
Try to test, instead of your variables, set direct values, like
$booking_form = apply_bk_filter('wpdevbk_get_booking_form', 5 , 1 ); debuge($booking_form); //show debug info about variable...
to check what exactly its return...
Kind Regards.
Using this javascript code with your code:
```
$.post("https://website/wp-admin/admin-ajax.php", data, function(response) {
console.log(response);
$('#calendar-target').html(response);
});
```
I get this response:
```Array
(
[0] => 5
)
jQuery(".ajax_respond_insert").css("display","block"); jQuery(".ajax_respond").css("display","block"); ```
Hello.
Yes you are right, just retested it.
Its because in the Ajax request have not created one object.
So please use instead of above code this code:
$wpdev_bk = new wpdev_booking(); $room_id = $_POST['room_id']; $booking_form = $wpdev_bk->get_booking_form_action( $room_id , 1 ); echo $booking_form;
Kind Regards.
You can even use this code, now:
$wpdev_bk = new wpdev_booking(); $room_id = intval($_POST['room_id']); $booking_form = do_shortcode('[bookingcalendar type='.$room_id.']'); echo $booking_form;
Kind Regards.
I added several bookings on my admin page, they show up in the admin tool exactly like all others, but on my life website they do not. Why?
Hello.
If you do not see the booked dates in calendar at the front-end, please open the General Booking Settings page and in the "Advanced section", please be sure that you have not activated this option: "Allow unlimited bookings per same day(s):". This option must be unchecked. If its checked, please uncheck it and update the settings.
If you still will have this issue, please recheck for the any cache plugins, like "WP Super Cache" or "W3 Total Cache". If you are using someone, please deactivate it or add the exception to the page with booking form for do not cache this page(s).
Kind Regards.
Hi,
On my booking form (free version), the fields of the form have too much space between them. (check https://chotte.ch/reserver)
How can I fix it ?
I checked the css file (booking/css/client.css/), can't find witch part I have to reduce.
Thanks a lot !
Cheers
Hello.
this issue because of CSS conflict with your theme.
Please try to make this fix.
Please open this file https://chotte.ch/wp-content/plugins/booking/css/client.css?ver=1.1
and add to the bottom of that file this code:
.booking_form .control-group label, .booking_form .control-group .controls, .booking_form .control-group { padding:0; display:inline; box-sizing:content-box !important; width:auto; margin:0; }
But its still will not be perfect, because too many CSS conflicts with your theme.
Kind Regards.
I recently purchased and installed the personal version of Booking Calendar for a client’s website.
She uses Google calendars as the authoritative source of her booked room nights, so we are importing data from her Google calendars daily.
I have received help from you previously about how to make the imported reservations display by default as “approved" in the Booking Calendars. (see https://wpbookingcalendar.com/support/comment-page-43/#comment-12676)
But doing this means that users’ requests for reservations also display as “approved" by default.
Is there any way to have the imported reservations appear as “approved” by default while making user-requested reservations either display in the calendars as “pending” or not display at all?
Hello.
If you need to auto approve the bookings, during importing the events from the Google Calendar, then please make this fix.
Please open this file ../{Booking Calendar Folder}/lib/wpbc-gcal-class.php
then find this code:
$booking_id = apply_bk_filter('wpbc_add_new_booking_filter' , $submit_array );
and replace it to this code:
$booking_id = apply_bk_filter('wpbc_add_new_booking_filter' , $submit_array ); sendApproveEmails($booking_id,1); global $wpdb; $update_sql = "UPDATE {$wpdb->prefix}bookingdates SET approved = '1' WHERE booking_id IN ({$booking_id});"; if ( false === $wpdb->query( $update_sql ) ){ // Error }
Kind Regards.
How do I make a pending, cancelled booking unmarked in the calendar without deleting it?
Cannot seem to find how to do that.
I am not using the auto-cancellation feature that does not seem to work for me.
Kind Regards
Kennet
What I mean is that I don¨t want to delete the customer data.
But maybe that is not possible?
Because it would be nice to be able to connect a specific customer to a new booking request.
So, this will be for the suggestion of future development - if possible.
Hello.
In next update 6.2 will be possible to not completely delete the booking but move the booking to the "Trash". Its will release days in calendar, so its will be possible to make new bookings by visitors. You can contact to support @ wpbookingcalendar.com about ability to get pre-release update 6.2 If you are using paid version, then please send your order number of purchase Booking Calendar.
Kind Regards.
Hi, I'm having a strange issue here. When I navigate to the page where my booking calendar exists, it displays correctly. Then, if I navigate to a different page and then back to the booking calendar page, I receive this error:
Warning! Booking calendar for this booking resource are already at the page, please check more about this issue at this page: https://wpbookingcalendar.com/faq/why-the-booking-calendar-widget-not-show-on-page/
If I refresh the page, the error goes away and the calendar displays again.
Any idea why this is happening? I only have one booking calendar configured, so the FAQ for this error message doesn't really help with my specific issue, thanks.
Hello.
Probably your actual theme or some other plugin is making some type of caching page, so we are getting several same calendars at the page. Please recheck in your theme about any cache settings and if possible deactivate it at the page with booking form.
Kind regards.