uHotelBooking script - Reservations disable same day

uHotelBooking
Talk and help info about common issues

Moderator: alexandrleonenko

olydel
Newbie
Newbie
Posts: 4
Joined: Jun 30th, '19, 06:45

uHotelBooking script - Reservations disable same day

Postby olydel » Jun 30th, '19, 06:57

Hi to all from Greece,


I'm using the uHotelBooking script (v.2.69) and I would like to forbid same day reservations.

Searching this forum I found this solutions :
1) http://www.apphp.net/forum/viewtopic.php?f=83&t=7581
2) http://www.apphp.net/forum/viewtopic.php?f=58&t=5218

It seems that they are old (from 2014 and 2016) and honestly I can not understand if they apply to uHotelBooking or only to apphp-Hotel script.
In any case I tried to implement them BUT they do not work.

So any help would be very appreciated!

administrator
Site Admin
Site Admin
Posts: 6074
Joined: Jan 7th, '09, 23:18
Contact:

Re: uHotelBooking script - Reservations disable same day

Postby administrator » Jun 30th, '19, 11:50

Only via
Rooms Management » Rotem King Villa » Single » Availability (for current/next years)

You may specify days, that has no available rooms.

olydel
Newbie
Newbie
Posts: 4
Joined: Jun 30th, '19, 06:45

Re: uHotelBooking script - Reservations disable same day

Postby olydel » Jul 1st, '19, 08:54

Hi again and thank you for your quick answer.

"Only via
Rooms Management » Rotem King Villa » Single » Availability (for current/next years)

You may specify days, that has no available rooms."


Your suggestion does not seems valuable. Manually disable days in Availability is not attractive.
A better solution -maybe- is a cron job executing an sql command that disable the same day availability for all properties.

In this case the problem is the search box calendar that still proposes the same day as a possibility for check-in. So clients wanting the same day reservation will be able to do a search and then they will get an error message or "no rooms available - search again". This is an extremely negative point that any booking engine must avoid.

Is there any clear way to disable the current day in the calendar?

Thank you

administrator
Site Admin
Site Admin
Posts: 6074
Joined: Jan 7th, '09, 23:18
Contact:

Re: uHotelBooking script - Reservations disable same day

Postby administrator » Jul 1st, '19, 16:38

If you want to disable specific day for calendar for all properties you may rum cron, like you said or do this via Database or create your own page in Backend, where you may do this for all/selected property.

olydel
Newbie
Newbie
Posts: 4
Joined: Jun 30th, '19, 06:45

Re: uHotelBooking script - Reservations disable same day

Postby olydel » Jul 6th, '19, 09:43

Hi,

If you want to disable specific day for calendar for all properties you may rum cron, like you said or do this via Database or create your own page in Backend, where you may do this for all/selected property.


Maybe I do not express my self correctly:

I want to completely disable for all properties the same day reservations and not specific date.

As I said this can be done in the back end by a cron job and an sql command. In this case I want to disable the current day date in the search calendar of the front page and in the search calendar in each property page.

Any help will be much appreciated.

administrator
Site Admin
Site Admin
Posts: 6074
Joined: Jan 7th, '09, 23:18
Contact:

Re: uHotelBooking script - Reservations disable same day

Postby administrator » Jul 7th, '19, 11:25

Ok, you may add all needed changes in include/classes/core/Cron.class.php
and remember to enable cron in Backend.

olydel
Newbie
Newbie
Posts: 4
Joined: Jun 30th, '19, 06:45

Re: uHotelBooking script - Reservations disable same day

Postby olydel » Jul 8th, '19, 16:18

Hi,

As I already wrote the db section is not really a problem - it's already done via mysql events so no cron concerns ;)


What I need to know is how to control the default day (current day) that appears in the search box in home page, hotel page and in widgets (side and central).

Which file (php, js or whatever) control this?
I already asked that but I do not get any hint.

In this case the problem is the search box calendar that still proposes the same day as a possibility for check-in. So clients wanting the same day reservation will be able to do a search and then they will get an error message or "no rooms available - search again". This is an extremely negative point that any booking engine must avoid.



Thank you for your help

administrator
Site Admin
Site Admin
Posts: 6074
Joined: Jan 7th, '09, 23:18
Contact:

Re: uHotelBooking script - Reservations disable same day

Postby administrator » Jul 9th, '19, 13:23

Look in Rooms.class.php in DrawSearchAvailabilityBlock() method


Return to “uHotelBooking {ALL}”