May 20, 2016
at 19:18 /
#15807
Hi.
I set up a form to book one of several resources with an arrival date and hidden field with a 5-day time range. I also use hidden fields for the arrival time and departure time which are correctly set up like this: [hidden units 5][hidden date-from-hour 14][hidden date-from-min 0][hidden date-to-hour 9][hidden date-to-min 0]
The rescources are set that arrival should be after 2.p.m. and departure before 10 a.m.
When I now book with this form I always get the error message that I have to leave before 10 am even though the leaving time is correctly chosen.
I tried changing the leaving restriction to after 2 pm in the resources. Everything works fine then.
It seems like I get the error messages because the leaving time is calculated by the arrival time + 5 times 86400sec.
How can this be fixed?
Kind regards.
May 23, 2016
at 12:30 /
#15809
Please a link to the form.
Regards
May 23, 2016
at 15:47 /
#15813
Hi, here is the link: http://www.pension-hochufer.de/test-offer/
Cheers.
May 24, 2016
at 11:53 /
#15817
Couldn’t find an error in the form, no idea why it thinks 9 is before 6. If you don’t let them choose the departure hour try to take out the restriction of the depature hour. Please post again and tell me if the depature hour is correct in the reservation later on.
Regards
May 25, 2016
at 16:44 /
#15830
If I don’t limit the departure hour then it works fine. (I have changed it for test reasons in the first room (Rosenzimmer) in case you want to check it out.)
But my client likes to limit it.
Is there any way to achieve both?
Again: I noticed the problem occurs as soon I limit the departure time to be before arrival time.
F.e.:
Arrival time limit: after 2pm. Departure time before 3 pm. No error message.
But Arrival time limit: after 2pm. Departure time before 2 pm. Error message. :-O
Regards.