Fix hotel city access method as introduced in tax flow changes

This commit is contained in:
Abhishek Kumar
2022-07-12 12:33:35 +05:30
parent ef44ddd00a
commit 126fbc87fb
3 changed files with 9 additions and 7 deletions

View File

@@ -752,11 +752,11 @@ abstract class PaymentModuleCore extends Module
$objBookingDetail->check_in_time = $objHotelBranch->check_in;
$objBookingDetail->check_out_time = $objHotelBranch->check_out;
if ($hotelAddress = $objHotelBranch->getAddress($objCartBkData->id_hotel)) {
$objHtlBkDtl->city = $hotelAddress['city'];
$objHtlBkDtl->state = $hotelAddress['state'];
$objHtlBkDtl->country = $hotelAddress['country'];
$objHtlBkDtl->zipcode = $hotelAddress['postcode'];
$objHtlBkDtl->phone = $hotelAddress['phone'];
$objBookingDetail->city = $hotelAddress['city'];
$objBookingDetail->state = $hotelAddress['state'];
$objBookingDetail->country = $hotelAddress['country'];
$objBookingDetail->zipcode = $hotelAddress['postcode'];
$objBookingDetail->phone = $hotelAddress['phone'];
}
}
if ($roomTypeInfo = $objRoomType->getRoomTypeInfoByIdProduct($idProduct)) {

View File

@@ -271,9 +271,10 @@ class AdminDashboardControllerCore extends AdminController
$hotelOptions = array(array('id_hotel' => false, 'hotel_name' => $this->l('All Hotels')));
foreach ($idsHotel as $idHotel) {
$objHotelBranchInfo = new HotelBranchInformation($idHotel, $this->context->language->id);
$hotelAddressInfo = $objHotelBranchInfo->getAddress($idHotel);
$hotelOptions[] = array(
'id_hotel' => (int) $idHotel,
'hotel_name' => $objHotelBranchInfo->hotel_name.', '.$objHotelBranchInfo->city,
'hotel_name' => $objHotelBranchInfo->hotel_name.', '.$hotelAddressInfo['city'],
);
}
$this->tpl_view_vars = array(

View File

@@ -5503,11 +5503,12 @@ class AdminProductsControllerCore extends AdminController
foreach ($idsHotel as $idHotel) {
$objHotelBranchInfo = new HotelBranchInformation($idHotel, $this->context->language->id);
if (Validate::isLoadedObject($objHotelBranchInfo)) {
$hotelAddressInfo = $objHotelBranchInfo->getAddress($idHotel);
$hotelInfo = array(
'id_hotel' => $objHotelBranchInfo->id,
'hotel_name' => $objHotelBranchInfo->hotel_name,
'rating' => $objHotelBranchInfo->rating,
'city' => $objHotelBranchInfo->city,
'city' => $hotelAddressInfo['city'],
);
$hotelsInfo[] = $hotelInfo;
}