From a61ab41e2c0d3eb3d418673928c4bb168564d3c1 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Fri, 19 Aug 2022 12:27:41 +0530 Subject: [PATCH] resolved contact page address issue for hotel --- .../hotelreservationsystem/classes/HotelBranchInformation.php | 3 ++- themes/hotel-reservation-theme/contact-form.tpl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/hotelreservationsystem/classes/HotelBranchInformation.php b/modules/hotelreservationsystem/classes/HotelBranchInformation.php index a96b6d90b..9a063ef4f 100644 --- a/modules/hotelreservationsystem/classes/HotelBranchInformation.php +++ b/modules/hotelreservationsystem/classes/HotelBranchInformation.php @@ -309,7 +309,8 @@ class HotelBranchInformation extends ObjectModel if (!Cache::isStored($cache_id)) { $sql = 'SELECT hbi.*, hbl.`policies`, hbl.`hotel_name`, hbl.`description`, hbl.`short_description`'; if ($detailedInfo) { - $sql .= ', hi.id as id_cover_img, a.`city`, s.`name` as `state_name`, cl.`name` as country_name'; + $sql .= ', hi.id as id_cover_img, a.`address1` as address, a.`postcode`, a.`phone`, a.`city`, + s.`name` as `state_name`, cl.`name` as country_name'; } $sql .= ' FROM `'._DB_PREFIX_.'htl_branch_info` hbi'; $sql .= ' LEFT JOIN `'._DB_PREFIX_.'htl_branch_info_lang` hbl diff --git a/themes/hotel-reservation-theme/contact-form.tpl b/themes/hotel-reservation-theme/contact-form.tpl index 435b4047d..dc9ae36ff 100644 --- a/themes/hotel-reservation-theme/contact-form.tpl +++ b/themes/hotel-reservation-theme/contact-form.tpl @@ -183,7 +183,7 @@

{$hotel['hotel_name']}

-

{$hotel['address']}, {$hotel['city']}, {if {$hotel['state_name']}}{$hotel['state_name']},{/if} {$hotel['country_name']}, {$hotel['zipcode']}

+

{$hotel['address']}, {$hotel['city']}, {if {$hotel['state_name']}}{$hotel['state_name']},{/if} {$hotel['country_name']}, {$hotel['postcode']}

{if $hotel['latitude'] != 0 || $hotel['longitude'] != 0}