Page 1 of 1

custom reservation box

Posted: May 22nd, '17, 09:40
by sugionodjojo
hello,

can you please advise what to change to not show the number of guests , adults and child? the reason is because sometimes misunderstood as no room available, whereby guest need to book multiple rooms , ie. 6 guest would misunderstood no room available, where by the group need to book 3 rooms for 2 person.

second is that since I am running my own hotel, can i also set reservation box not to show sort by ratings, or price?

look forward to your reply.

thank you
sugiono

Re: custom reservation box

Posted: Jun 23rd, '17, 13:44
by ChriStef
Very good points you have here. Please advise...

Re: custom reservation box

Posted: Jun 25th, '17, 20:57
by akis
Hello, I hope this to help you
In include/classes/Rooms.class.php comment the lines /* 2575 - 2594 to hide hotel options, location and star rating options
comment the lines /* 2633 - 2638 */ to hiding from the reservation module adults and child choice
And 2706 to hide adults and children label:
<tr><td nowrap="nowrap"><!--'._ADULTS.':'.$output3.(!empty($output4) ? _CHILDREN.': '.$output4 : '').'--></td></tr>';

Re: custom reservation box

Posted: Jul 5th, '17, 11:32
by sugionodjojo
hello,

thanks for your reply.

maybe we are not on same version, mine is 4.4.3 and line 2575 - 2594 are

$lang = Application::Get('lang');
$output = '';
$where_clause = '';

if($objLogin->IsLoggedInAs('hotelowner')){
$hotels_list = implode(',', $objLogin->AssignedToHotels());
if(!empty($hotels_list)) $where_clause .= ' AND r.hotel_id IN ('.$hotels_list.')';
}

if(!empty($hotel_id)) $where_clause .= ' AND r.hotel_id = '.(int)$hotel_id;

$sql = 'SELECT
r.id,
r.hotel_id,
r.room_count,
rd.room_type,
\'\' as availability,
hd.name as hotel_name
FROM '.TABLE_ROOMS.' r
INNER JOIN '.TABLE_ROOMS_DESCRIPTION.' rd ON r.id = rd.room_id AND rd.language_id = \''.$lang.'\'

perhaps you can tell me which code to uncomment and i will look for it?

thanks again, nice to have some reply :)

Re: custom reservation box

Posted: Jul 6th, '17, 11:36
by sugionodjojo
akis wrote:Hello, I hope this to help you
In include/classes/Rooms.class.php comment the lines /* 2575 - 2594 to hide hotel options, location and star rating options
comment the lines /* 2633 - 2638 */ to hiding from the reservation module adults and child choice
And 2706 to hide adults and children label:
<tr><td nowrap="nowrap"><!--'._ADULTS.':'.$output3.(!empty($output4) ? _CHILDREN.': '.$output4 : '').'--></td></tr>';



hello Akis,

none of the above works, sorry

i also did some experiment on folder page/booking and check_availability.class
but none of those what i am looking for.......

actually, for such simple hotel , much better to leave the option of choosing room to guest with infos such as how many person can occupy that room, rather than limit the result list by letting guest to input how many person in a room.

I do not know, still got no feedback from admin.

Re: custom reservation box

Posted: Jul 6th, '17, 15:22
by sugionodjojo
ChriStef wrote:Very good points you have here. Please advise...



hello,

viewtopic.php?f=58&t=2673&p=17877#p17877

i still waiting for confirmation if this will work , and not make problem with the scripts.

Re: custom reservation box

Posted: Jul 10th, '17, 14:20
by akis
Hi,
If you have x-soho template comment the lines
506, 507 in templates/x-soho/lib/functions.template.php
// $data['max_adults'] = isset($_POST['book_room_adults']) ? (int)$_POST['book_room_adults'] : '';
//$data['max_children'] = isset($_POST['book_room_children']) ? (int)$_POST['book_room_children'] : '';