Important!!! Check actual Support Forum, if you need to ask a Questions.
How to add validation for form fields ( i.e name and phone fields validation ) and I am getting an error of form field appended each time i got an error i want to remove the append jquery function and use replace instead
Hello.
1) You can activate phone validation my making this fix.
Please open this file ../{Booking Calendar Folder}/js/client.js
// Phone validation
/*if ( element.name == ('phone'+bk_type) ) {
// we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number - See more at: http://www.w3resource.com/javascript/form/phone-no-validation.php#sthash.U9FHwcdW.dpuf
var reg = /^\d{10}$/;
var message_verif_phone = "Please enter correctly phone number";
if ( inp_value != '' )
if(reg.test(inp_value) == false) {showErrorMessage( element , message_verif_phone);return;}
}*/
and replace it to this code:
// Phone validation
if ( element.name == ('phone'+bk_type) ) {
// we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number - See more at: http://www.w3resource.com/javascript/form/phone-no-validation.php#sthash.U9FHwcdW.dpuf
var reg = /^\d{10}$/;
var message_verif_phone = "Please enter correctly phone number";
if ( inp_value != '' )
if(reg.test(inp_value) == false) {showErrorMessage( element , message_verif_phone);return;}
}
Please do not forget to clear browser cache before testing these changes.
2) In the similar way you can make validation for other fields, like Name. Please note you will be need to add new code, I do not sure how you need to validate your name, but you can check previous example, and find in google some regular expression for validation of other terms.
3) Sorry, I do not sure that clearly understand about this issue: "form field appended " can you explain more detail, or send screenshot and link to the page with issue to support @ wpbookingcalendar.com
Kind Regards.
I have purchased and implemented the Medium Booking Calendar version. Our first client has booked their accommodation for the date of arrival as Saturday 6 January 2018 until date of departure on the morning of Saturday 14 January 2018. This implies a total of 8 x nights at R4,400.00 per night, thus R35,200.00 ~ Although the Payment notification to the client states a total of 8 x nights, an amount of R39,600.00 is being calculated as the amount due instead of R 35,200.00 which it should be, i.e. an extra night which is not correct. Could you please advise on how I can fix this?
Hello.
Please make this configuration.
1) Please open the Booking > Settings > Payment page and set there cost "per 1 day" instead of cost "per 1 night".
2) Then open the Booking > Resources > Cost and rates page and click on "Valuation days" button. Please set this cost configuration:
For LAST day = 0 per day
where LAST its reserved term for last selected day, in this case, system will start calculation like cost per nights.
After this drag and drop this cost setting to the top of "Valuation days" list. And Save changes.
then make your tests again.
Thank you.
Hello, I am sorry but I am unable to complete the instruction as you have explained it. I have been to the Payment page and it is currently set to "per 1 day". In your instruction number 2) I do not understand how to implement this.Could I please email you my login credentials and ask you to please implement this change for me?
Hello.
It’s at the different page. At the Booking > Resources > “Cost and rates” page. Then need to click on “Valuation days” button.
In any case you can send your details to support @ wpbookingcalendar.com
So then we will recheck it during today.
Kind Regards.
I have purchased and implemented the Medium Booking Calendar version. Our first client has booked their accommodation for the date of arrival as Saturday 6 January 2018 until date of departure on the morning of Saturday 14 January 2018. This implies a total of 8 x nights at R4,400.00 per night, thus R35,200.00 ~ Although the Payment notification to the client states a total of 8 x nights, an amount of R39,600.00 is being calculated as the amount due instead of R 35,200.00 which it should be, i.e. an extra night which is not correct. Could you please advise on how I can fix this?
Type of Days Selection in calendar is set to "Multiple Days"
1) How a customer can do a booking for different timeslots (ex. 3 following hours)?
2) Can you define that he only can do a booking for consecutive timeslots?
3) How you can you use the shortcut [bookingtimeline...] to modify column width? In my view date /timeslot columns are equal, but the dates only needs a smal part of the width. I want to maximize the timeslot-width. (i was not successfull customizing the timeline-css or used the wrong class)
Hello.
1,2) You can use instead of timeslots the start time field and duration of time field. So in this case you can book more consecutive hours.
Please use shortcode generator at the right side of the Booking > Settings > Form page for the fast and correct creation of booking form fields.
3) Please send the link to the page with timeline, I will check it then.
Kind Regards.
More question for "MultiUser SingleSite 8.1":
1) How can I hide the labels in a timeline view?
Especially for time slots its very nice view, but customers should not see the names of other customers.
2) How can I expand the displayed data in a time-line view (opposite of 1 above)? This could be helpful for a caretaker of a ressource who has no access to the admin-level, but access to an protected website.
3) For one user I need "Type of days selection in calendar" --> "Range days"
but for an other user/ressource "Type of days selection in calendar" --> "Single day" (do do time slot booking on only one day)
Hello.
1) You can deactivate the showing of the mouse over tooltips with booking details at the Booking > Settings General page in Booking Listing section by unchecking this option "Booking details in popover".
Please note, in case, if you just need to reconfigure how to show booking details, here all booking details was getting from "Content of booking fields data" form configuration at the Booking > Settings > Form page.
Also you can remove showing booking form fields data from timeline booking pipeline, by removing any shortcodes at the Booking > Settings General page in Booking Listing section for the option: "Booking title (front panel)"
2) Its possible to activate or deactivate showing booking details in Timeline as in above description, only. Please check above point.
Kind Regards.
Ok, that works, buts as I understand, you do not can change the appereance (label/pop up yes/no) for each timeline-view individually?
Yes, unfortunately, its does not possible in actual versions.
This settings apply to any Timelines.
Kind Regards.
Hi,
I don't know how to use the pre-filled fields functionality. I checked it in general settings. But the fields are empty in the forms on frontend. For example, the general user information (name, address). When they make a reservation, these field must be filled with current_user's value in the database.
So I am wondering if this is the best way to do it.
Regards,
Hello.
You can activate this option "Auto-fill fields" at the Booking > Settings General page,
and when logged in user try to make new booking, so then only these fields:
- First Name
- Second Name
- Email
will be auto filled from WordPress user profile to booking form.
Please note, currently Booking Calendar support only auto fill of these 3 fields.
If you will need to make auto fill of other form fields from the user profile (and by the way user profile its standard WordPress functionality, where also exist some restricted specific number of form fields), so then you will be need to make customization of the Booking Calendar source code for adding to auto fill these new additional form fields. You can do this at the ../{Booking Calendar Folder}/core/lib/wpdev-booking-class.php file
in this code:
if ($is_use_auto_fill_for_logged == 'On') {
$curr_user = wp_get_current_user();
if ( $curr_user->ID > 0 ) {
...
Disclaimer. Unfortunately we can not start, right now, some personal customization or custom development, because almost have no free time.
Check more about new features here https://wpbookingcalendar.com/faq/need-new-feature/
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.
Thanks for fast replying, I'm gonna modify this file then.
How do I delete a booking from the calendar so the date is free again? Thx
Hello.
1) You can move this booking to the trash (at the Booking Listing page in admin panel), in this case the dates from this booking will not be showing as unavailable in calendar at the front-end side.
2) Also you can activate this option "Allow unlimited bookings per same day(s)" at the Booking > Settings General page in Advanced section. So then your visitors will be able to make unlimited bookings per same date(s) in calendar and do not see any booked date(s) of other visitors.
1) Wow can I disable that?
2) Timeline is a great possibility to find a free timeslot (ex. of an meeting room). Is it possible, that the customers klicks on a day in the timeline, then this date is taken in the booking form? (which I want to place below/besite the timeline).
3) in the day view of an timeline, it's painfull to klick in the future (ex. timeline shows today, but you want to know, whats free in 5 weeks). Any idea to simplify that?
Hello.
1) Can you explain more detail, or better send screenshot with indication where exactly exist these links in the timeline ? Please send it to support @ wpbookingcalendar.com
2) Sorry, currently its does not possible. But your customer can click on "booking resource" titles in the timeline and then he/she can be redirected to the page with booking form for this specific booking resource. Please read how to configure this shortcode here https://wpbookingcalendar.com/help/booking-calendar-shortcodes/
3) Currently this is not possible in actual versions. We will add this feature to the TODO list for having it in future updates of plugin.
Thank you.
Hello.
This fix will be exist in next update of Booking Calendar.
Currently you can make this customization.
Please open this file ../{Booking Calendar Folder}/core/admin/wpbc-class-timeline.php
What is minimum hardware or share hosting requirements?
Thanks.
reagrds,
Aaron
Hello.
Usually such configuration is enough for correct working of plugin:
Commonly required configuration vars in php.ini file:
General section:
memory_limit = 256M
max_execution_time = 120
post_max_size = 8M
upload_max_filesize = 8M
max_input_vars = 20480
post_max_size = 64M
Suhosin section (if installed):
suhosin.post.max_array_index_length = 1024
suhosin.post.max_totalname_length = 65535
suhosin.post.max_vars = 2048
suhosin.post.max_value_length = 1000000
suhosin.post.max_name_length = 256
suhosin.post.max_array_depth = 1000
suhosin.request.max_array_index_length = 1024
suhosin.request.max_totalname_length = 65535
suhosin.request.max_vars = 2048
suhosin.request.max_value_length = 1000000
suhosin.request.max_varname_length = 256
suhosin.request.max_array_depth = 1000
But of course, if you will have at the same visible page too many booking forms (or selection of booking resources ) or timelines, so its will require more time to load page and it can be reason of long load. Please try to insert booking forms at the different pages.
In case, if you have any issues, please recheck your error.log in your server configuration, about any relative errors. If you can not find error.log file, please contact support of your hosting company about helping in finding this file.
Thank you.
I am getting the following error when I try to book a new appointment:
Error during inserting into DB
[F:/wpbc-booking-new.php| L:286|V:8.1| DB:Table april_wrdp3.wp_booking doesnt exist::INSERT INTO wp_booking (form, booking_type, modification_date, sort_date) VALUES
And then there is a list of the information I input into the form. Is this something you can advise on? Thank you!
Hello.
Thank you for interest to the Booking Calendar.
1) Please be sure that your MySQL user (which is using in config.php file) have the rights for database creation and modification fields in table.
If you do not sure about this, please contact support of your hosting company about helping with checking this.
In case, if your WordPress user do not have such rights, so then during activation of plugin will not be created new fields in DB table and also possible that some tables will not be created.
2) If you do not have some important bookings or settings, we recommend to make FULL reinstall of plugin. For this please open the general booking settings page and make checked the "Delete booking data during deactivation of plugin" at the right side. Then open the WordPress plugins menu and click on "Deactivate" link. Wait for the message that plugin is deactivated successfully. After this Click on "Activate" link of Booking Calendar plugin and wait for the message that plugin is activated successfully.
After this test it again.
Kind Regards.
How to add validation for form fields ( i.e name and phone fields validation ) and I am getting an error of form field appended each time i got an error i want to remove the append jquery function and use replace instead
Hello.
1) You can activate phone validation my making this fix.
Please open this file ../{Booking Calendar Folder}/js/client.js
( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )
then find this code:
// Phone validation /*if ( element.name == ('phone'+bk_type) ) { // we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number - See more at: http://www.w3resource.com/javascript/form/phone-no-validation.php#sthash.U9FHwcdW.dpuf var reg = /^\d{10}$/; var message_verif_phone = "Please enter correctly phone number"; if ( inp_value != '' ) if(reg.test(inp_value) == false) {showErrorMessage( element , message_verif_phone);return;} }*/
and replace it to this code:
// Phone validation if ( element.name == ('phone'+bk_type) ) { // we validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number - See more at: http://www.w3resource.com/javascript/form/phone-no-validation.php#sthash.U9FHwcdW.dpuf var reg = /^\d{10}$/; var message_verif_phone = "Please enter correctly phone number"; if ( inp_value != '' ) if(reg.test(inp_value) == false) {showErrorMessage( element , message_verif_phone);return;} }
Please do not forget to clear browser cache before testing these changes.
2) In the similar way you can make validation for other fields, like Name. Please note you will be need to add new code, I do not sure how you need to validate your name, but you can check previous example, and find in google some regular expression for validation of other terms.
3) Sorry, I do not sure that clearly understand about this issue: "form field appended " can you explain more detail, or send screenshot and link to the page with issue to support @ wpbookingcalendar.com
Kind Regards.
I have purchased and implemented the Medium Booking Calendar version. Our first client has booked their accommodation for the date of arrival as Saturday 6 January 2018 until date of departure on the morning of Saturday 14 January 2018. This implies a total of 8 x nights at R4,400.00 per night, thus R35,200.00 ~ Although the Payment notification to the client states a total of 8 x nights, an amount of R39,600.00 is being calculated as the amount due instead of R 35,200.00 which it should be, i.e. an extra night which is not correct. Could you please advise on how I can fix this?
Hello.
Please make this configuration.
1) Please open the Booking > Settings > Payment page and set there cost "per 1 day" instead of cost "per 1 night".
2) Then open the Booking > Resources > Cost and rates page and click on "Valuation days" button. Please set this cost configuration:
For LAST day = 0 per day
where LAST its reserved term for last selected day, in this case, system will start calculation like cost per nights.
After this drag and drop this cost setting to the top of "Valuation days" list. And Save changes.
then make your tests again.
Thank you.
Hello, I am sorry but I am unable to complete the instruction as you have explained it. I have been to the Payment page and it is currently set to "per 1 day". In your instruction number 2) I do not understand how to implement this.Could I please email you my login credentials and ask you to please implement this change for me?
Hello.
It’s at the different page. At the Booking > Resources > “Cost and rates” page. Then need to click on “Valuation days” button.
In any case you can send your details to support @ wpbookingcalendar.com
So then we will recheck it during today.
Kind Regards.
I have purchased and implemented the Medium Booking Calendar version. Our first client has booked their accommodation for the date of arrival as Saturday 6 January 2018 until date of departure on the morning of Saturday 14 January 2018. This implies a total of 8 x nights at R4,400.00 per night, thus R35,200.00 ~ Although the Payment notification to the client states a total of 8 x nights, an amount of R39,600.00 is being calculated as the amount due instead of R 35,200.00 which it should be, i.e. an extra night which is not correct. Could you please advise on how I can fix this?
Type of Days Selection in calendar is set to "Multiple Days"
Hello.
Check here https://wpbookingcalendar.com/support/comment-page-9/#comment-16481
Some question for "MultiUser SingleSite 8.1":
1) How a customer can do a booking for different timeslots (ex. 3 following hours)?
2) Can you define that he only can do a booking for consecutive timeslots?
3) How you can you use the shortcut [bookingtimeline...] to modify column width? In my view date /timeslot columns are equal, but the dates only needs a smal part of the width. I want to maximize the timeslot-width. (i was not successfull customizing the timeline-css or used the wrong class)
Hello.
1,2) You can use instead of timeslots the start time field and duration of time field. So in this case you can book more consecutive hours.
Please use shortcode generator at the right side of the Booking > Settings > Form page for the fast and correct creation of booking form fields.
3) Please send the link to the page with timeline, I will check it then.
Kind Regards.
More question for "MultiUser SingleSite 8.1":
1) How can I hide the labels in a timeline view?
Especially for time slots its very nice view, but customers should not see the names of other customers.
2) How can I expand the displayed data in a time-line view (opposite of 1 above)? This could be helpful for a caretaker of a ressource who has no access to the admin-level, but access to an protected website.
3) For one user I need "Type of days selection in calendar" --> "Range days"
but for an other user/ressource "Type of days selection in calendar" --> "Single day" (do do time slot booking on only one day)
How can this be configured?
Hello.
You can activate the different type of days selection at different pages.
Please check how to configure this here: https://wpbookingcalendar.com/faq/advanced-javascript-for-the-booking-shortcodes/
Kind Regards.
Hello.
1) You can deactivate the showing of the mouse over tooltips with booking details at the Booking > Settings General page in Booking Listing section by unchecking this option "Booking details in popover".
Please note, in case, if you just need to reconfigure how to show booking details, here all booking details was getting from "Content of booking fields data" form configuration at the Booking > Settings > Form page.
Also you can remove showing booking form fields data from timeline booking pipeline, by removing any shortcodes at the Booking > Settings General page in Booking Listing section for the option: "Booking title (front panel)"
2) Its possible to activate or deactivate showing booking details in Timeline as in above description, only. Please check above point.
Kind Regards.
Ok, that works, buts as I understand, you do not can change the appereance (label/pop up yes/no) for each timeline-view individually?
Yes, unfortunately, its does not possible in actual versions.
This settings apply to any Timelines.
Kind Regards.
Hi,
I don't know how to use the pre-filled fields functionality. I checked it in general settings. But the fields are empty in the forms on frontend. For example, the general user information (name, address). When they make a reservation, these field must be filled with current_user's value in the database.
So I am wondering if this is the best way to do it.
Regards,
Hello.
You can activate this option "Auto-fill fields" at the Booking > Settings General page,
and when logged in user try to make new booking, so then only these fields:
- First Name - Second Name - Email
will be auto filled from WordPress user profile to booking form.
Please note, currently Booking Calendar support only auto fill of these 3 fields.
If you will need to make auto fill of other form fields from the user profile (and by the way user profile its standard WordPress functionality, where also exist some restricted specific number of form fields), so then you will be need to make customization of the Booking Calendar source code for adding to auto fill these new additional form fields. You can do this at the ../{Booking Calendar Folder}/core/lib/wpdev-booking-class.php file
in this code:
if ($is_use_auto_fill_for_logged == 'On') { $curr_user = wp_get_current_user(); if ( $curr_user->ID > 0 ) { ...
Disclaimer. Unfortunately we can not start, right now, some personal customization or custom development, because almost have no free time.
Check more about new features here https://wpbookingcalendar.com/faq/need-new-feature/
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.
Thanks for fast replying, I'm gonna modify this file then.
How do I delete a booking from the calendar so the date is free again? Thx
Hello.
1) You can move this booking to the trash (at the Booking Listing page in admin panel), in this case the dates from this booking will not be showing as unavailable in calendar at the front-end side.
2) Also you can activate this option "Allow unlimited bookings per same day(s)" at the Booking > Settings General page in Advanced section. So then your visitors will be able to make unlimited bookings per same date(s) in calendar and do not see any booked date(s) of other visitors.
Kind Regards.
Timelines:
The timeline has in the header sometimes Links to the admin-Panel (ex. from the online demo: https://bl.wpbookingcalendar.com/wp-admin/admin.php?page=wpbc&scroll_start_date=2017-12-12).
1) Wow can I disable that?
2) Timeline is a great possibility to find a free timeslot (ex. of an meeting room). Is it possible, that the customers klicks on a day in the timeline, then this date is taken in the booking form? (which I want to place below/besite the timeline).
3) in the day view of an timeline, it's painfull to klick in the future (ex. timeline shows today, but you want to know, whats free in 5 weeks). Any idea to simplify that?
Hello.
1) Can you explain more detail, or better send screenshot with indication where exactly exist these links in the timeline ? Please send it to support @ wpbookingcalendar.com
2) Sorry, currently its does not possible. But your customer can click on "booking resource" titles in the timeline and then he/she can be redirected to the page with booking form for this specific booking resource. Please read how to configure this shortcode here https://wpbookingcalendar.com/help/booking-calendar-shortcodes/
3) Currently this is not possible in actual versions. We will add this feature to the TODO list for having it in future updates of plugin.
Thank you.
1) klick on the header (date) of the month-view on
https://bl.wpbookingcalendar.com/timeline/
Hello.
This fix will be exist in next update of Booking Calendar.
Currently you can make this customization.
Please open this file ../{Booking Calendar Folder}/core/admin/wpbc-class-timeline.php
( you can check how to edit files in WordPress menu in this article https://wpbookingcalendar.com/faq/how-edit-file-in-wp-menu/ )
then find this code:
?><a href='<?php echo $bk_admin_url_today . '&scroll_start_date=' . $yy . '-' . $mm . '-' . $dd ; ? rel="nofollow">'> <div class="day_num day_num<?php echo $d_inc ?>"><?php echo $day_title;?></div> </a><?php
and replace it to this code:
if ( ! $this->is_frontend ) { ?><a href='<?php echo $bk_admin_url_today . '&scroll_start_date=' . $yy . '-' . $mm . '-' . $dd; ? rel="nofollow">'><?php } ?> <div class="day_num day_num<?php echo $d_inc ?>"><?php echo $day_title;?></div><?php if ( ! $this->is_frontend ) { ?></a><?php }
Kind Regards.
Hi Support,
What is minimum hardware or share hosting requirements?
Thanks.
reagrds,
Aaron
Hello.
Usually such configuration is enough for correct working of plugin:
Commonly required configuration vars in php.ini file: General section: memory_limit = 256M max_execution_time = 120 post_max_size = 8M upload_max_filesize = 8M max_input_vars = 20480 post_max_size = 64M Suhosin section (if installed): suhosin.post.max_array_index_length = 1024 suhosin.post.max_totalname_length = 65535 suhosin.post.max_vars = 2048 suhosin.post.max_value_length = 1000000 suhosin.post.max_name_length = 256 suhosin.post.max_array_depth = 1000 suhosin.request.max_array_index_length = 1024 suhosin.request.max_totalname_length = 65535 suhosin.request.max_vars = 2048 suhosin.request.max_value_length = 1000000 suhosin.request.max_varname_length = 256 suhosin.request.max_array_depth = 1000
But of course, if you will have at the same visible page too many booking forms (or selection of booking resources ) or timelines, so its will require more time to load page and it can be reason of long load. Please try to insert booking forms at the different pages.
In case, if you have any issues, please recheck your error.log in your server configuration, about any relative errors. If you can not find error.log file, please contact support of your hosting company about helping in finding this file.
Thank you.
I am getting the following error when I try to book a new appointment:
Error during inserting into DB
[F:/wpbc-booking-new.php| L:286|V:8.1| DB:Table april_wrdp3.wp_booking doesnt exist::INSERT INTO wp_booking (form, booking_type, modification_date, sort_date) VALUES
And then there is a list of the information I input into the form. Is this something you can advise on? Thank you!
Hello.
Thank you for interest to the Booking Calendar.
1) Please be sure that your MySQL user (which is using in config.php file) have the rights for database creation and modification fields in table.
If you do not sure about this, please contact support of your hosting company about helping with checking this.
In case, if your WordPress user do not have such rights, so then during activation of plugin will not be created new fields in DB table and also possible that some tables will not be created.
2) If you do not have some important bookings or settings, we recommend to make FULL reinstall of plugin. For this please open the general booking settings page and make checked the "Delete booking data during deactivation of plugin" at the right side. Then open the WordPress plugins menu and click on "Deactivate" link. Wait for the message that plugin is deactivated successfully. After this Click on "Activate" link of Booking Calendar plugin and wait for the message that plugin is activated successfully.
After this test it again.
Kind Regards.