Fixed: service product undifined variable warning

This commit is contained in:
amit sharma
2026-09-24 13:12:25 +05:30
parent ba8ae8b24d
commit a16fd4679f

View File

@@ -121,6 +121,7 @@ class GuestTrackingControllerCore extends FrontController
&& ($dateFrom = Tools::getValue('date_from'))
&& ($dateTo = Tools::getValue('date_to'))
) {
$objRoomType = new HotelRoomType();
$useTax = 0;
if (Group::getPriceDisplayMethod($this->context->customer->id_default_group) == PS_TAX_INC) {
$useTax = 1;
@@ -144,8 +145,10 @@ class GuestTrackingControllerCore extends FrontController
));
}
$roomTypeInfo = $objRoomType->getRoomTypeInfoByIdProduct($idProduct);
$this->context->smarty->assign(array(
'objOrder' => new Order($idOrder),
'room_type_info' => $roomTypeInfo,
));
$response['extra_services'] = $this->context->smarty->fetch(_PS_THEME_DIR_.'_partials/order-extra-services.tpl');