Merge branch 'develop' into gli-2941

This commit is contained in:
amit sharma
2026-09-02 11:48:40 +05:30
58 changed files with 2333 additions and 617 deletions

View File

@@ -50,6 +50,7 @@ class ProductControllerCore extends FrontController
$this->addJS(array(
_THEME_JS_DIR_.'tools.js', // retro compat themes 1.5
_THEME_JS_DIR_.'product.js',
_THEME_JS_DIR_.'room-type-service-products.js',
));
} else {
$this->addJqueryPlugin(array('scrollTo', 'serialScroll'));
@@ -1459,8 +1460,8 @@ class ProductControllerCore extends FrontController
$response = array('status' => false);
$idProduct = (int) Tools::getValue('id_product');
if ($this->product->booking_product) {
$dateFrom = Tools::getValue('room_check_in');
$dateTo = Tools::getValue('room_check_out');
$dateFrom = Tools::getValue('date_from');
$dateTo = Tools::getValue('date_to');
$occupancy = Tools::getValue('occupancy');
if (Configuration::get('PS_FRONT_ROOM_UNIT_SELECTION_TYPE') == HotelBookingDetail::PS_ROOM_UNIT_SELECTION_TYPE_OCCUPANCY) {
if (!Validate::isOccupancy($occupancy)) {
@@ -1487,7 +1488,7 @@ class ProductControllerCore extends FrontController
$idHotel = Tools::getValue('service_id_hotel');
$buying_option = Tools::getValue('buying_option');
$id_product_option = Tools::getValue('id_product_option');
$quantity = Tools::getValue('service_product_qty');
$quantity = Tools::getValue('qty');
$this->assignServiceProductVars(
$id_product_option,
$quantity,
@@ -1496,6 +1497,7 @@ class ProductControllerCore extends FrontController
);
}
$this->context->smarty->assign('static_token', Tools::getToken(false));
$html = $this->context->smarty->fetch('_partials/booking-form.tpl');
$response['status'] = true;
$response['html_booking_form'] = $html;