Fixed: support per-room booking methods, update selling object type across order pages, and add default property & room type values

This commit is contained in:
Amit sharma
2026-03-20 18:59:04 +05:30
parent 8452e5f3a7
commit 0da72aefc9
51 changed files with 895 additions and 202 deletions

View File

@@ -678,16 +678,11 @@ class AdminCartsControllerCore extends AdminController
$cart_detail_data[$key]['room_type_info'] = $objRoomType->getRoomTypeInfoByIdProduct($cart_data['id_product']);
}
}
$occupancyRequiredForBooking = false;
if (Configuration::get('PS_BACKOFFICE_ROOM_BOOKING_TYPE') == HotelBookingDetail::PS_ROOM_UNIT_SELECTION_TYPE_OCCUPANCY) {
$occupancyRequiredForBooking = true;
}
$this->context->smarty->assign(array(
'cart_detail_data' => $cart_detail_data,
'cart' => $objCart,
'currency' => new Currency((int)$this->context->cart->id_currency),
'occupancy_required_for_booking' => $occupancyRequiredForBooking,
'ajax' => true
));