Fixed: service product undifined variable warning
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user