We've encountered a frequent misunderstanding among our users with the booking form on our website. The intention is for users to book for additional people coming with them, excluding themselves. However, most users include themselves in the total count, leading to an incorrect total number of guests booked.
To address this I added same code that you provided another user. The goal is to automatically subtract one from the total count to account for the person making the booking, ensuring the count is accurate. Below is the code I used
function my_custom_function($appointmentData) {
if ($appointmentData !== null) {
$appointmentData['bookings'][0]['persons'] -= 1;
}
return $appointmentData;
}
add_filter('amelia_before_booking_added_filter', 'my_custom_function');
thats not work for me i add this function.php
The current system works this way: you select the number of additional people you bring with you (so if you select 2 then the total is 2 + 1 = 3). However, this user experience is confusing for the users. So what we want to do is that on the front end if you select 3 then the total number is 3.
Thanks But its show on front end when i choose 2 then it front end its show 3
(so if you select 2 then the total is 2 + 1 = 3). However, this user experience is confusing for the users. So we want to do that on the front end, if you select 3, the total number is 3.
Thanks for the video, unfortunatelly, this option is not created for older versions of the Booking Form. This only works for V2 of the booking forms. We certainly recommend using the newer V2 versions since the older ones will be deprecated in the near future.
Hi,
We've encountered a frequent misunderstanding among our users with the booking form on our website. The intention is for users to book for additional people coming with them, excluding themselves. However, most users include themselves in the total count, leading to an incorrect total number of guests booked.
To address this I added same code that you provided another user. The goal is to automatically subtract one from the total count to account for the person making the booking, ensuring the count is accurate. Below is the code I used
thats not work for me i add this function.php
The current system works this way: you select the number of additional people you bring with you (so if you select 2 then the total is 2 + 1 = 3). However, this user experience is confusing for the users. So what we want to do is that on the front end if you select 3 then the total number is 3.
Hi Rakinul,
There is no need to add the script, this has been added as a feature in our latest update.
You will find this option in Appointment settings.
I hope it helps.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello Stefan,
Thanks But its show on front end when i choose 2 then it front end its show 3
(so if you select 2 then the total is 2 + 1 = 3). However, this user experience is confusing for the users. So we want to do that on the front end, if you select 3, the total number is 3.
Hi Rakinul,
Try the other option "Total people". This will show the total number of people on the front end. Looks like you have selected the first option.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
https://komododecks.com/recordings/xbOLN0pHq3IUNBLZOZMn
Please check this video its still show 3
It is not working on booking form 1.0 catalog and step by step booking option, its just works others one
Hi Rakinul,
Thanks for the video, unfortunatelly, this option is not created for older versions of the Booking Form. This only works for V2 of the booking forms. We certainly recommend using the newer V2 versions since the older ones will be deprecated in the near future.
Kind Regards,
Stefan Petrov
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables