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
custom reservation box
Moderator: alexandrleonenko
Re: custom reservation box
Very good points you have here. Please advise...
Re: custom reservation box
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>';
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>';
-
- Junior
- Posts: 10
- Joined: Jun 13th, '11, 21:41
Re: custom reservation box
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
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

-
- Junior
- Posts: 10
- Joined: Jun 13th, '11, 21:41
Re: custom reservation box
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.
-
- Junior
- Posts: 10
- Joined: Jun 13th, '11, 21:41
Re: custom reservation box
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
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'] : '';
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'] : '';