Is there any way to do this?

Post here you suggestions and wished features for hoteldruid development.

Moderator: marco

Post Reply
MarcAstr0
Posts: 12
Joined: Wed Apr 16, 2008 6:19 pm
Location: Santiago, Chile

Is there any way to do this?

Post by MarcAstr0 »

Hello
I've found that at the hostel I'm working at it is much easier for our receptionists to enter reservation dates as 'start date' and 'number of nights'. For example, by default, in the reservation form php-residence has:

From <select date> to <select date>

How can I modify prenota.php to have the form like this?

Arrival <select date>
Number of nights <insert number>
MarcAstr0
Posts: 12
Joined: Wed Apr 16, 2008 6:19 pm
Location: Santiago, Chile

Post by MarcAstr0 »

In other words, which is the variable that gets passed as the end date and ends up inserted in the reservations table on the DB?

My idea, is to get the default end date (one day later than the start date) and after getting the number of nights on the form change the end date with the desired number of nights.

Please help
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Post by marco »

The variable depends on the page where you find the select, normally it is "fineperiodo". Anyway you can see it viewing the html source of the page in firefox.

Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Scott M. Sanders
Posts: 4
Joined: Wed Dec 24, 2008 6:53 pm
Location: Bucyrus, Ohio, USA

Post by Scott M. Sanders »

I would like to have this feature as well.
Post Reply