Removed the PS_STORES_ICON from the category front controller and added in hotel reservation system

This commit is contained in:
vishalsingh.qlo325
2024-07-16 17:32:59 +05:30
parent ea94bb82a9
commit c300cd571e
2 changed files with 1 additions and 5 deletions

View File

@@ -59,11 +59,6 @@ class CategoryControllerCore extends FrontController
$this->addCSS(_THEME_CSS_DIR_.'occupancy.css');
$this->addJS(_THEME_JS_DIR_.'occupancy.js');
Media::addJsDef(
array(
'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')),
)
);
$scenes = Scene::getScenes($this->category->id, $this->context->language->id, true, false);
if ($scenes && count($scenes)) {
$this->addJS(_THEME_JS_DIR_.'scenes.js');

View File

@@ -310,6 +310,7 @@ class HotelReservationSystem extends Module
'map_input_text' => $objHotel->map_input_text,
),
'hotel_name' => $objHotel->hotel_name,
'PS_STORES_ICON' => $this->context->link->getMediaLink(_PS_IMG_.Configuration::get('PS_STORES_ICON')),
));
$this->context->controller->addJS(