Important!!! Check actual Support Forum, if you need to ask a Questions.
Hello,
I am using the Small Business Version.
I cannot get emails to be sent to my clients after a deposit has not been paid with the time setting.
All other email sends are working.
On the GENERAL PAGE : I have checked the following attributes and saved settings :-
Auto Cancel booking : CHECKED
Cancel bookings older : set to 1 HOUR
Cancellation email sent : CHECKED
On the EMAILS PAGE : I have checked the following attributes and saved settings :-
Declined : CHECKED
Could you suggest a fix for this?
Regards
John Morgan
Hello.
1) Does the bookings canceling after specific amount of time ? And your customers just do not receive emails ? Activate the copy of this email to send to admin also to test this feature. What version update of Booking Calendar do you use ? If its not latest version 5.4.4, then you can request the new update of Booking Calendar on this page: https://wpbookingcalendar.com/request-update/
2) Also one important info about the auto-cancellation. System check for cancellation, not every moment, but at the moment, when someone try to access to your website.
Then system check the difference in time, and if some bookings are "expired" then these bookings will be canceled.
So if you need to set automatic cancellation, you need to configure cron script at your server. Please contact the server administrator or support of hosting company, if you do not familiar with cron scripts.
3) If you do not receive emails at all then please check this troubleshooting instruction https://wpbookingcalendar.com/faq/no-emails/ (the most probably you need to check the point #5 from this instruction).
Kind Regards.
One additional suggestion, please be sure that you set correct time-zone at the WordPress > Settings page. Because if you set not correct timezone, the difference in time between the now times and your booking creation can be incorrectly applying.
Kind Regards.
Hello again,
I am using Version 5.4.4
All other emails are being sent and received.
Your point number 2 might be the answer. I'll leave an expired booking a day or so and see if the "expired" booking gets deleted.
Thanks
John Morgan
I have the Business Large Single Site 5.4.2.
I am trying to create a holiday bundle for 5 hotel rooms. Does your plugin support this or do I need to look elsewhere?
Thank you
Hello.
You can create the booking resource with capacity = 5 and then have the "visitors" selection in booking form (you can have some new custom booking form), as 5 visitors, for be able to book all 5 child booking resources at one booking process.
Please read more about it here https://wpbookingcalendar.com/overview/#capacity 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 https://wpbookingcalendar.com/help/booking-resource/
Moved site from local (Mac) installation to live (Linux) server. Booking shortcode breaks the page(s) that it's on (eg other items, including javascript etc, on page after it fail to load/display). I've upgraded to paid plan (which I planned anyway) but it's still failing. If I remove shortcode, page renders; once it's put back the page fails again.
Thanks
Hello.
Can you send the link to the page with this issue to test it ?
Thank you.
Hello.
Checked and its seems fine. I was sending email with screenshot to your email. Please check it. Please check spam folder, if you do not see it in inbox.
Kind Regards.
This is NOT an email problem!
Sorry, misunderstood.
I've received your email, but the screenshot is doing exactly what I said: nether the booking calendar or form are rendering (they should appear to the right of the main text), and the rest of the page is also prevented from rendering: there should be a slideshow just below the masthead, and a footer at the bottom.
Thanks
Hello.
Ok, in this case its seems that some error exist at the page.
Can you recheck your error.log file at the server configuration to check about the reason of this issue, so then we can try to fix it.
Also please try to deactivate one by one all your active plugins at the WordPress > Plugins menu. Then retest it again.
If its not help, please deactivate your active theme and active the default WordPress theme. And then retest it again. May be there exist some conflict with some active plugin or actual theme and just need to find the reason of that issue.
Kind Regards.
Quite a lot of these:
[Tue Nov 17 18:13:47.783153 2015] [:error] [pid 18140] [client 86.147.189.42:64142] PHP Fatal error: Call to undefined function imagecreatetruecolor() in /var/www/vhosts/orchardparkfarm.net/wp-content/plugins/booking.personal.5.4.4/js/captcha/captcha.php on line 93, referer: https:/$
As for plugins and theme, the exac same site is running fine locally, so there's no conflict.
Hello.
You can try to deactivate the captcha at the General Booking Settings page in Form section, or follow this troubleshooting instructions:
2) Please recheck that your server was configured for using 2.0 GD library.
Reason
The cause is that you do not have the version 2.0 GD library loaded in PHP which defines this function, which is used for the captcha in this plugin.
Checking
Use this PHP code to view what extensions you have loaded on your hosting account.
<?php
print_r(get_loaded_extensions(
));
print_r(var_dump(gd_info()));
?>
Just create a text file with the four lines above in your public_html folder (or wherever your web root is), name it with a .php extension like "test.php" and then run it by using your web browser like "https://www.yourdomain.com/test.php "
This does not write correct HTML but will show you the info you need. (Just do a View/Source on your browser if you want a nicer looking format.) Look for text like "[some number] => gd". If you don't see this, you do NOT have the GD library loaded.
Next you want to look for the version number. Something like: ["GD Version"]=> string(27) "bundled (2.0.28 compatible)"
This needs to say version 2.0 or later.
-----------
If you do not see GD version 2.0, you must get your hosting provider to install or upgrade your system.
-----------
If you are still will have this issue, please recheck the error.log in your server configurations to be sure in a reason of that issue.
3) If you are using Cache plugin (like "WP Super Cache" ), please deactivate it or add the exception to the page with booking form to do not cache this page.
Kind Regards.
Thanks – that was it!
Just installed GD with sudo yum install php56-gd then restarted httpd and voila, all working 😉
Actually, still having one small issue: the CAPTCHA image isn't showing – just a broken image symbol. I've run through the troubleshooting stuff mentioned above, but it's still not working.
Thanks again – it was a permissions thing. Though I had correct permissions on that folder, but it was 775 d and 664 f. Changed to 777 for captcha dir and contents and now working fine.
Hello,
For some reason I cannot get this linked to my enquiries@ inbox so that I am notified via email when a booking is made ather than on my dashboard. Is this possible?
Thanks
Luke
Hello.
If you are asking about to set the different email of sending emails for the bookings than email in the WordPress Settings page, so yes its possible.
You can configure the email and email templates for the bookings at the Booking > Settings > Emails page in the each email template tab.
PS If you are having issue with not receiving emails then please check this troubleshooting instruction https://wpbookingcalendar.com/faq/no-emails/ (the most probably you need to check the point #5 from this instruction).
Kind Regards.
HI
I've gone through the steps and troubleshootting as indicated. We still are not receiving emails to the admin email when inquiries are sent to the admin email. I've changed the email to several different ones but still nothing.
You need to use some other SMTP plugin, which will send these emails.
Booking Calendar is using the standard wp_mail function for the sending emails.
If the issue still will exist, please recheck ( with your hosting support ) email log file about the reason of not sending emails.
Kind regards.
Can I please get some help with this problem? We have been waiting for quite a while for a response. I've gone through all of your steps, contacted our hosting company and everything checks out except the admin receiving emails. The customer receives their email but not the admin.
Hello.
Do you installed some SMTP plugin ?
Can you send screenshot of email template configuration that have to send to admin about new booking ? You can send it to the support @ wpbookingcalendar.com
Kind Regards.
Hi,
Is it possible to have 1 Resource for 1 Calendar and 2 buyer options? We need to have 1 option for members (free booking) + 1 option for non-members (paid booking).
If yes, how do we do this? We have 'Business Small' version.
Thanks
Ilona
Hello.
Sorry I do not clearly understand what exactly you need to have.
If you just need o have selectbox selection with 2 options in your booking form, then you can configure it at the Booking > Settings > Fields page. Please use shortcode generator at the right side of the Booking > Settings > Fields page for the fast and correct creation of booking form fields.
If you need to have the 2 different form customization, that one booking form will have one list of form fields and other booking form will have the different form fields, and then you will need to insert one form for specific booking resource into one page and insert other form for this specific booking resources into other page, then its possible in the Booking Calendar Business Medium and higher versions. Please read more about this here: https://wpbookingcalendar.com/overview/#custom-forms
If you was meaning something else, please explain it more detail.
Kind Regards.
Thanks for that. We have 1 resource which is a club room for a canoeing club that is hired out for functions, etc. For members who want to hire the club room there is no fee, it is a free booking. For non-members it is a paid booking. This is a recent change, before we just had the paid bookings so 1 resource was fine. I created a 2nd resource and tried to create a drop down menu of these 2 resources so 1 resource could be chosen for the booking but I could not get this to work in Booking Settings / Fields. I also don't know if creating a 2nd resource is how this should work. We don't want 2 calendars and we don't want to risk having double bookings on the same day. Is this possible? Thanks again
Hello.
Here exist 2 possibilities.
1) If you do not need to have double bookings on the same date, then you can use only one booking resource.
And in the booking form at the Booking > Settings > Fields page have the selections like this: Please select: [select user_type "Members" "Non Members"]
By default if visitor make the booking, and even if this visitor do not make the payment, this booking still will exist in the system with pending status.
So you just can inform to your members, that they do not need to make the payments.
2) Other way, is to have 2 different booking resources.
One resource for the Members, and other resource for non Members. You will be need to insert the booking forms for these 2 different resources into the different pages. And then inform your members users, where is the page to make the booking for them. Of course for the booking resource for non members you can set some cost of booking resource at the Booking > Resources page. And for the booking resource for members users you can set cost as 0 of booking resource at the Booking > Resources page, so its willbe free booking.
Now about how to prevent double booking.
Let say you are having the booking resources with these ID: - Regular users resource ( ID = 2 )
- Members resource (ID = 3)
then for the Non members resource you need to have this shortcode: [booking type=2 nummonths=1 agregate='3']
and for the memebers you will be need to have this shortcode: [booking type=3 nummonths=1 agregate='2']
PS Please do not copy/paste these shortcodes, please retype all them manually, because you can copy wrong ' symbol, and its can generate some issues
Kind Regards.
I am using the free version, which is excellent, thank you.
I have added the calendar as a widget in the footer area. This works great on every page, except for the actual Calendar page, in which case the calendar does not load in the footer. In its place is the message
"Calendar is loading..."
I realize that this is because I am trying to load the calendar twice on one page. But is there any way around this?
Hello.
No, there are no workflow about this issue. It's does not possible to show Calrndar 2 times at the same page. Because there will exist conflicts with ID elements. This restriction apply to the booking calendar free version and to the calendars of the same booking resource in paid versions.
Kind regards.
Hi all,
can i use the Booking Calendar Business Small version for 2 different projects?
Hello.
If you need to use Business Small version on 2 different websites, then you need to purchase the Booking Calendar Business Small developer edition version. This version possible to use on 2 different websites.
Please note, it's will be fully independent installation of plugin.
Kind regards.
Hello.
Its possible to have such type of form customization in the paid versions of Booking Calendar.
I these versions of Booking Calendar please open the Booking > Settings > Fields page, then in the action toolbar, select "2 Columns form template" and click on "Reset" (or "Both") button, to reset the exist booking form customization to the default one.
You will have this booking form customization:
You can test Booking Calendar live demos at this page https://wpbookingcalendar.com/demo/ to be sure in functionality and do not have misunderstanding.
Hi,
I have multiuser booking calendar. I am editing coupons settings. In savings text box I should insert this value 14,285714286 as percentage off. The plug in round this value to 14,29. This is wrong.
Where can I find the php code to fix this wrong behavior?
Thanks
Hello.
this issue relative to the DB structure. You need to later the DB table by using phpMyAdmin or some other DB editing tool.
If your have prefixes for your DB tables like "wp_", then you need to execute this code: ALTER TABLE wp_booking_coupons MODIFY coupon_value float(16,12) DEFAULT '0.00';
Kind Regards.
Ok, the db problem is solved.
In fact the value displayed now in the box is 14.2857142 but should be 14.285714286. It seems that the max length of the check box is 10.
Now where can I fix the text box problem?
Thanks
Hello.
Please recheck firstly, that in your DB float precision was set to 12.
Default value have to be like this: "0.000000000000"
After this try to test with creation new coupon code.
Kind Regards.
As I have written above the db problem is ok. Now the precision is set to 12. But in the text box of the coupon saving off it doesn't let me to insert more than 10 digit.
Hello.
Please open this file ../{Booking Calendar Folder}/inc/biz_l.php
Thanks. Also this has been done. Last problem:
I insert this value 14.285714286000, click save and the value I get it is 14.285714149475.
What's going on?
Hello.
I think it's some issue relative to the MySQL. What version of MySQL do you use ?
Kind regards.
phpMyAdmin version 4.1.7
Not phpMyAdmin, but MySQL version.
5.5.41
Hello.
Ok tested more, and its seems that issue also relative to the WordPress "prepare" function for escaping data.
1) Try to make this customization firstly in your phpMyAdmin: ALTER TABLE wp_booking_coupons MODIFY coupon_value DOUBLE PRECISION(32,12) default '0.00'
2) Please open this file ../{Booking Calendar Folder}/inc/biz_l.php
Hello,
I am using the Small Business Version.
I cannot get emails to be sent to my clients after a deposit has not been paid with the time setting.
All other email sends are working.
On the GENERAL PAGE : I have checked the following attributes and saved settings :-
Auto Cancel booking : CHECKED
Cancel bookings older : set to 1 HOUR
Cancellation email sent : CHECKED
On the EMAILS PAGE : I have checked the following attributes and saved settings :-
Declined : CHECKED
Could you suggest a fix for this?
Regards
John Morgan
Hello.
1) Does the bookings canceling after specific amount of time ? And your customers just do not receive emails ? Activate the copy of this email to send to admin also to test this feature. What version update of Booking Calendar do you use ? If its not latest version 5.4.4, then you can request the new update of Booking Calendar on this page: https://wpbookingcalendar.com/request-update/
2) Also one important info about the auto-cancellation. System check for cancellation, not every moment, but at the moment, when someone try to access to your website.
Then system check the difference in time, and if some bookings are "expired" then these bookings will be canceled.
So if you need to set automatic cancellation, you need to configure cron script at your server. Please contact the server administrator or support of hosting company, if you do not familiar with cron scripts.
3) If you do not receive emails at all then please check this troubleshooting instruction https://wpbookingcalendar.com/faq/no-emails/ (the most probably you need to check the point #5 from this instruction).
Kind Regards.
One additional suggestion, please be sure that you set correct time-zone at the WordPress > Settings page. Because if you set not correct timezone, the difference in time between the now times and your booking creation can be incorrectly applying.
Kind Regards.
Hello again,
I am using Version 5.4.4
All other emails are being sent and received.
Your point number 2 might be the answer. I'll leave an expired booking a day or so and see if the "expired" booking gets deleted.
Thanks
John Morgan
I have the Business Large Single Site 5.4.2.
I am trying to create a holiday bundle for 5 hotel rooms. Does your plugin support this or do I need to look elsewhere?
Thank you
Hello.
You can create the booking resource with capacity = 5 and then have the "visitors" selection in booking form (you can have some new custom booking form), as 5 visitors, for be able to book all 5 child booking resources at one booking process.
Please read more about it here https://wpbookingcalendar.com/overview/#capacity
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 https://wpbookingcalendar.com/help/booking-resource/
Also we highly recommend to check this article about different configuration of capacity and availability https://wpbookingcalendar.com/faq/capacity-concept/
Kind Regards.
Moved site from local (Mac) installation to live (Linux) server. Booking shortcode breaks the page(s) that it's on (eg other items, including javascript etc, on page after it fail to load/display). I've upgraded to paid plan (which I planned anyway) but it's still failing. If I remove shortcode, page renders; once it's put back the page fails again.
Thanks
Hello.
Can you send the link to the page with this issue to test it ?
Thank you.
Yes, it's https://orchardparkfarm.net
The problem is on these pages:
– https://orchardparkfarm.net/bed-and-breakfast/bramley-room/
– https://orchardparkfarm.net/bed-and-breakfast/russet-room/
– https://orchardparkfarm.net/bed-and-breakfast/sussex-room
Thanks
Robin
Hello.
Checked and its seems fine. I was sending email with screenshot to your email. Please check it. Please check spam folder, if you do not see it in inbox.
Kind Regards.
This is NOT an email problem!
Sorry, misunderstood.
I've received your email, but the screenshot is doing exactly what I said: nether the booking calendar or form are rendering (they should appear to the right of the main text), and the rest of the page is also prevented from rendering: there should be a slideshow just below the masthead, and a footer at the bottom.
Thanks
Hello.
Ok, in this case its seems that some error exist at the page.
Can you recheck your error.log file at the server configuration to check about the reason of this issue, so then we can try to fix it.
Also please try to deactivate one by one all your active plugins at the WordPress > Plugins menu. Then retest it again.
If its not help, please deactivate your active theme and active the default WordPress theme. And then retest it again. May be there exist some conflict with some active plugin or actual theme and just need to find the reason of that issue.
Kind Regards.
Quite a lot of these:
[Tue Nov 17 18:13:47.783153 2015] [:error] [pid 18140] [client 86.147.189.42:64142] PHP Fatal error: Call to undefined function imagecreatetruecolor() in /var/www/vhosts/orchardparkfarm.net/wp-content/plugins/booking.personal.5.4.4/js/captcha/captcha.php on line 93, referer: https:/$
As for plugins and theme, the exac same site is running fine locally, so there's no conflict.
Hello.
You can try to deactivate the captcha at the General Booking Settings page in Form section, or follow this troubleshooting instructions:
1) Please try to check this troubleshooting instruction, if you are having any issues with CAPTCHA: https://wpbookingcalendar.com/faq/captcha-showing-problems/
2) Please recheck that your server was configured for using 2.0 GD library.
Reason
The cause is that you do not have the version 2.0 GD library loaded in PHP which defines this function, which is used for the captcha in this plugin.
Checking
Use this PHP code to view what extensions you have loaded on your hosting account.
<?php print_r(get_loaded_extensions( )); print_r(var_dump(gd_info())); ?>
Just create a text file with the four lines above in your public_html folder (or wherever your web root is), name it with a .php extension like "test.php" and then run it by using your web browser like "https://www.yourdomain.com/test.php "
This does not write correct HTML but will show you the info you need. (Just do a View/Source on your browser if you want a nicer looking format.) Look for text like "[some number] => gd". If you don't see this, you do NOT have the GD library loaded.
Next you want to look for the version number. Something like: ["GD Version"]=> string(27) "bundled (2.0.28 compatible)"
This needs to say version 2.0 or later.
-----------
If you do not see GD version 2.0, you must get your hosting provider to install or upgrade your system.
-----------
LEARN MORE:
Learn more about the GD library:
https://www.php.net/manual/en/ref.image.php
Learn more about this function:
https://www.php.net/manual/en/function.imagecreatetruecolor.php
If you are still will have this issue, please recheck the error.log in your server configurations to be sure in a reason of that issue.
3) If you are using Cache plugin (like "WP Super Cache" ), please deactivate it or add the exception to the page with booking form to do not cache this page.
Kind Regards.
Thanks – that was it!
Just installed GD with sudo yum install php56-gd then restarted httpd and voila, all working 😉
Actually, still having one small issue: the CAPTCHA image isn't showing – just a broken image symbol. I've run through the troubleshooting stuff mentioned above, but it's still not working.
Thanks
Hello.
This issue relative to the permission to load the immages, like this:
https://orchardparkfarm.net/wp-content/plugins/booking.personal.5.4.4/js/captcha/tmp/1264975111.png
from that folder.
Please firstly recheck that there such type of images exist, and then recheck that you have access (probably in the .htaccess file) for ability to load such images.
Kind Regards.
Thanks again – it was a permissions thing. Though I had correct permissions on that folder, but it was 775 d and 664 f. Changed to 777 for captcha dir and contents and now working fine.
Hello,
For some reason I cannot get this linked to my enquiries@ inbox so that I am notified via email when a booking is made ather than on my dashboard. Is this possible?
Thanks
Luke
Hello.
If you are asking about to set the different email of sending emails for the bookings than email in the WordPress Settings page, so yes its possible.
You can configure the email and email templates for the bookings at the Booking > Settings > Emails page in the each email template tab.
PS If you are having issue with not receiving emails then please check this troubleshooting instruction https://wpbookingcalendar.com/faq/no-emails/ (the most probably you need to check the point #5 from this instruction).
Kind Regards.
HI
I've gone through the steps and troubleshootting as indicated. We still are not receiving emails to the admin email when inquiries are sent to the admin email. I've changed the email to several different ones but still nothing.
Hello.
Please recheck the point #5 from the email troubleshooting instruction from the FAQ: https://wpbookingcalendar.com/faq/do-not-get-emails/
You need to use some other SMTP plugin, which will send these emails.
Booking Calendar is using the standard wp_mail function for the sending emails.
If the issue still will exist, please recheck ( with your hosting support ) email log file about the reason of not sending emails.
Kind regards.
Can I please get some help with this problem? We have been waiting for quite a while for a response. I've gone through all of your steps, contacted our hosting company and everything checks out except the admin receiving emails. The customer receives their email but not the admin.
Hello.
Do you installed some SMTP plugin ?
Can you send screenshot of email template configuration that have to send to admin about new booking ? You can send it to the support @ wpbookingcalendar.com
Kind Regards.
Hi,
Is it possible to have 1 Resource for 1 Calendar and 2 buyer options? We need to have 1 option for members (free booking) + 1 option for non-members (paid booking).
If yes, how do we do this? We have 'Business Small' version.
Thanks
Ilona
Hello.
Sorry I do not clearly understand what exactly you need to have.
If you just need o have selectbox selection with 2 options in your booking form, then you can configure it at the Booking > Settings > Fields page. Please use shortcode generator at the right side of the Booking > Settings > Fields page for the fast and correct creation of booking form fields.
If you need to have the 2 different form customization, that one booking form will have one list of form fields and other booking form will have the different form fields, and then you will need to insert one form for specific booking resource into one page and insert other form for this specific booking resources into other page, then its possible in the Booking Calendar Business Medium and higher versions. Please read more about this here: https://wpbookingcalendar.com/overview/#custom-forms
If you was meaning something else, please explain it more detail.
Kind Regards.
Thanks for that. We have 1 resource which is a club room for a canoeing club that is hired out for functions, etc. For members who want to hire the club room there is no fee, it is a free booking. For non-members it is a paid booking. This is a recent change, before we just had the paid bookings so 1 resource was fine. I created a 2nd resource and tried to create a drop down menu of these 2 resources so 1 resource could be chosen for the booking but I could not get this to work in Booking Settings / Fields. I also don't know if creating a 2nd resource is how this should work. We don't want 2 calendars and we don't want to risk having double bookings on the same day. Is this possible? Thanks again
Hello.
Here exist 2 possibilities.
1) If you do not need to have double bookings on the same date, then you can use only one booking resource.
And in the booking form at the Booking > Settings > Fields page have the selections like this:
Please select: [select user_type "Members" "Non Members"]
By default if visitor make the booking, and even if this visitor do not make the payment, this booking still will exist in the system with pending status.
So you just can inform to your members, that they do not need to make the payments.
2) Other way, is to have 2 different booking resources.
One resource for the Members, and other resource for non Members. You will be need to insert the booking forms for these 2 different resources into the different pages. And then inform your members users, where is the page to make the booking for them. Of course for the booking resource for non members you can set some cost of booking resource at the Booking > Resources page. And for the booking resource for members users you can set cost as 0 of booking resource at the Booking > Resources page, so its willbe free booking.
Now about how to prevent double booking.
Let say you are having the booking resources with these ID:
- Regular users resource ( ID = 2 ) - Members resource (ID = 3)
then for the Non members resource you need to have this shortcode:
[booking type=2 nummonths=1 agregate='3']
and for the memebers you will be need to have this shortcode:
[booking type=3 nummonths=1 agregate='2']
The trick in the "agregate" parameter in these shortcodes. Please read more about this here: https://wpbookingcalendar.com/help/booking-calendar-shortcodes/#booking
PS Please do not copy/paste these shortcodes, please retype all them manually, because you can copy wrong ' symbol, and its can generate some issues
Kind Regards.
I am using the free version, which is excellent, thank you.
I have added the calendar as a widget in the footer area. This works great on every page, except for the actual Calendar page, in which case the calendar does not load in the footer. In its place is the message
"Calendar is loading..."
I realize that this is because I am trying to load the calendar twice on one page. But is there any way around this?
Here is the site: https://paradisev.com
Thanks again!
Hello.
No, there are no workflow about this issue. It's does not possible to show Calrndar 2 times at the same page. Because there will exist conflicts with ID elements. This restriction apply to the booking calendar free version and to the calendars of the same booking resource in paid versions.
Kind regards.
Hi all,
can i use the Booking Calendar Business Small version for 2 different projects?
Hello.
If you need to use Business Small version on 2 different websites, then you need to purchase the Booking Calendar Business Small developer edition version. This version possible to use on 2 different websites.
Please note, it's will be fully independent installation of plugin.
Kind regards.
Ok thanks!
Hi,
Here https://m-test.nowcommu.myhostpoint.ch/ is possible to float the calendar left and the form on the right?
Hello.
Its possible to have such type of form customization in the paid versions of Booking Calendar.
I these versions of Booking Calendar please open the Booking > Settings > Fields page, then in the action toolbar, select "2 Columns form template" and click on "Reset" (or "Both") button, to reset the exist booking form customization to the default one.
You will have this booking form customization:
<div style="float:left;margin-right:10px; " > [calendar] </div> <div style="float:left;" > <p>First Name (required):<br />[text* name] </p> <p>Last Name (required):<br />[text* secondname] </p> <p>Email (required):<br />[email* email] </p> <p>Phone:<br />[text phone] </p> <p>Adults: [select visitors class:span1 "1" "2" "3" "4"] Children: [select children class:span1 "0" "1" "2" "3"]</p> </div> <div style="clear:both"> <p>Details:<br /> [textarea details 100x5 class:span6]</p> [captcha] <p>[checkbox* term_and_condition use_label_element "I Accept term and conditions"]</p> <hr/><p>[submit class:btn "Send"] </p> </div>
Click on "Save changes" button and then test it.
You can test Booking Calendar live demos at this page https://wpbookingcalendar.com/demo/ to be sure in functionality and do not have misunderstanding.
You can check overview of different Booking Calendar versions at this page: https://wpbookingcalendar.com/overview/
Hi,
I have multiuser booking calendar. I am editing coupons settings. In savings text box I should insert this value 14,285714286 as percentage off. The plug in round this value to 14,29. This is wrong.
Where can I find the php code to fix this wrong behavior?
Thanks
Hello.
this issue relative to the DB structure. You need to later the DB table by using phpMyAdmin or some other DB editing tool.
If your have prefixes for your DB tables like "wp_", then you need to execute this code:
ALTER TABLE wp_booking_coupons MODIFY coupon_value float(16,12) DEFAULT '0.00';
Kind Regards.
Ok, the db problem is solved.
In fact the value displayed now in the box is 14.2857142 but should be 14.285714286. It seems that the max length of the check box is 10.
Now where can I fix the text box problem?
Thanks
Hello.
Please recheck firstly, that in your DB float precision was set to 12.
Default value have to be like this: "0.000000000000"
After this try to test with creation new coupon code.
Kind Regards.
As I have written above the db problem is ok. Now the precision is set to 12. But in the text box of the coupon saving off it doesn't let me to insert more than 10 digit.
Hello.
Please open this file ../{Booking Calendar Folder}/inc/biz_l.php
then find this code:
<input id="coupon_value_new" name="coupon_value_new" type="text" value="<?php echo (! $edit_coupon_data)?'':$edit_coupon_data['coupon_value']; ?>" style="width:48%;float:left;margin-right:1%" maxlength="10" >
and replace it to this code:
<input id="coupon_value_new" name="coupon_value_new" type="text" value="<?php echo (! $edit_coupon_data)?'':$edit_coupon_data['coupon_value']; ?>" style="width:48%;float:left;margin-right:1%" />
Thanks. Also this has been done. Last problem:
I insert this value 14.285714286000, click save and the value I get it is 14.285714149475.
What's going on?
Hello.
I think it's some issue relative to the MySQL. What version of MySQL do you use ?
Kind regards.
phpMyAdmin version 4.1.7
Not phpMyAdmin, but MySQL version.
5.5.41
Hello.
Ok tested more, and its seems that issue also relative to the WordPress "prepare" function for escaping data.
1) Try to make this customization firstly in your phpMyAdmin:
ALTER TABLE wp_booking_coupons MODIFY coupon_value DOUBLE PRECISION(32,12) default '0.00'
2) Please open this file ../{Booking Calendar Folder}/inc/biz_l.php
then find this code:
$my_sql = $wpdb->prepare( "INSERT INTO {$wpdb->prefix}booking_coupons ( coupon_code, coupon_value, coupon_type, expiration_date, coupon_min_sum, coupon_active, support_bk_types {$useres_title} ) VALUES (%s, %f, %s, %s, %f, %d, %s {$users_values} ) " , $_POST["coupon_name_new"], $_POST["coupon_value_new"], $_POST["coupon_type_new"]
and replace it to this code:
$my_sql = $wpdb->prepare( "INSERT INTO {$wpdb->prefix}booking_coupons ( coupon_code, coupon_value, coupon_type, expiration_date, coupon_min_sum, coupon_active, support_bk_types {$useres_title} ) VALUES (%s, {$_POST['coupon_value_new']}, %s, %s, %f, %d, %s {$users_values} ) " , $_POST["coupon_name_new"], $_POST["coupon_type_new"]
Also replace this code:
. ", coupon_value = %f " . ", coupon_type = %s " . ", expiration_date = %s " . ", coupon_min_sum = %f " . ", coupon_active = %d " . ", support_bk_types = %s " . " WHERE coupon_id = %d ;" , $_POST["coupon_name_new"] , $_POST["coupon_value_new"] , $_POST["coupon_type_new"]
to this:
. ", coupon_value = {$_POST['coupon_value_new']} " . ", coupon_type = %s " . ", expiration_date = %s " . ", coupon_min_sum = %f " . ", coupon_active = %d " . ", support_bk_types = %s " . " WHERE coupon_id = %d ;" , $_POST["coupon_name_new"] , $_POST["coupon_type_new"]
Kind Regards.
Perfect. Now works like a charm
How do I make a range of dates unavailable? ie. We'll be closing for two weeks are christmas - I'd rather not do single dummy booking one-by-one.
Hello.
Its possible in the Booking Calendar Business Medium and higher versions.
Please read more about this feature here: https://wpbookingcalendar.com/overview/#availability
Kind Regards.