diff --git a/controllers/front/GuestTrackingController.php b/controllers/front/GuestTrackingController.php index 3be4444d5..d31973f80 100644 --- a/controllers/front/GuestTrackingController.php +++ b/controllers/front/GuestTrackingController.php @@ -557,6 +557,9 @@ class GuestTrackingControllerCore extends FrontController $objHotelBranchInformation = new HotelBranchInformation($idHotel, $this->context->language->id); $hotelAddressInfo = HotelBranchInformation::getAddress($idHotel); + $objHotelBranchRefundRules = new HotelBranchRefundRules(); + $hotelRefundRules = $objHotelBranchRefundRules->getHotelRefundRules($idHotel, 0, 1); + // set order specific values $order->total_convenience_fee_ti = $total_convenience_fee_ti; $order->total_convenience_fee_te = $total_convenience_fee_te; @@ -571,6 +574,7 @@ class GuestTrackingControllerCore extends FrontController $order->customerGuestDetail = $customerGuestDetail; $order->obj_hotel_branch_information = $objHotelBranchInformation; $order->hotel_address_info = $hotelAddressInfo; + $order->hotel_refund_rules = $hotelRefundRules; //end Hook::exec('actionOrderDetail', array('carrier' => $order->carrier, 'order' => $order)); diff --git a/themes/hotel-reservation-theme/guest-tracking.tpl b/themes/hotel-reservation-theme/guest-tracking.tpl index 1965f5c13..83514f8ac 100644 --- a/themes/hotel-reservation-theme/guest-tracking.tpl +++ b/themes/hotel-reservation-theme/guest-tracking.tpl @@ -59,6 +59,7 @@ {assign var=customerGuestDetail value=$order->customerGuestDetail} {assign var=obj_hotel_branch_information value=$order->obj_hotel_branch_information} {assign var=hotel_address_info value=$order->hotel_address_info} + {assign var=hotel_refund_rules value=$order->hotel_refund_rules} {if isset($order->total_old)} {assign var=total_old value=$order->total_old} diff --git a/themes/hotel-reservation-theme/order-detail.tpl b/themes/hotel-reservation-theme/order-detail.tpl index 23635cf24..8240f6c5d 100644 --- a/themes/hotel-reservation-theme/order-detail.tpl +++ b/themes/hotel-reservation-theme/order-detail.tpl @@ -599,6 +599,14 @@ + {if $is_guest} +
{l s='You cannot request refund with a guest account.'}
+