john77100 Posted May 23, 2016 Share Posted May 23, 2016 (edited) bonjour serait il possible de ne pas affiché les sous catégorie dans la barre du menu tout en les laissant active Merci Edited May 23, 2016 by john77100 (see edit history) Link to comment Share on other sites More sharing options...
john77100 Posted May 23, 2016 Author Share Posted May 23, 2016 Bonjour merci pour votre message . J'ai regarder dans blocktopmenu.php je ne sais quel ligne modifier pouvez vous m'en dire plus merci Link to comment Share on other sites More sharing options...
john77100 Posted May 23, 2016 Author Share Posted May 23, 2016 (edited) merci pour votre message mais je n'y arrive pas voice le code de la ligne 597 à 645j'utilise prestashop 1.6.1.5}return $html;}protected function getCacheId($name = null){$page_name = in_array($this->page_name, array('category', 'supplier', 'manufacturer', 'cms', 'product')) ? $this->page_name : 'index';return parent::getCacheId().'|'.$page_name.($page_name != 'index' ? '|'.(int)Tools::getValue('id_'.$page_name) : '');}public function hookHeader(){$this->context->controller->addJS($this->_path.'js/hoverIntent.js');$this->context->controller->addJS($this->_path.'js/superfish-modified.js');$this->context->controller->addJS($this->_path.'js/blocktopmenu.js');$this->context->controller->addCSS($this->_path.'css/blocktopmenu.css');$this->context->controller->addCSS($this->_path.'css/superfish-modified.css');}public function hookDisplayTop($param){$this->user_groups = ($this->context->customer->isLogged() ?$this->context->customer->getGroups() : array(Configuration::get('PS_UNIDENTIFIED_GROUP')));$this->page_name = Dispatcher::getInstance()->getController();if (!$this->isCached('blocktopmenu.tpl', $this->getCacheId())) {if (Tools::isEmpty($this->_menu)) {$this->makeMenu();}$shop_id = (int)$this->context->shop->id;$shop_group_id = Shop::getGroupFromShop($shop_id);$this->smarty->assign('MENU_SEARCH', Configuration::get('MOD_BLOCKTOPMENU_SEARCH', null, $shop_group_id, $shop_id));$this->smarty->assign('MENU', $this->_menu);$this->smarty->assign('this_path', $this->_path);}$html = $this->display(__FILE__, 'blocktopmenu.tpl', $this->getCacheId());return $html;}public function hookDisplayNav($params){return $this->hookDisplayTop($params);}protected function getCMSCategories($recursive = false, $parent = 1, $id_lang = false, $id_shop = false){$id_lang = $id_lang ? (int)$id_lang : (int)Context::getContext()->language->id;$id_shop = ($id_shop !== false) ? $id_shop : Context::getContext()->shop->id;$join_shop = '';$where_shop = '';if (Tools::version_compare(_PS_VERSION_, '1.6.0.12', '>=') == true) {$join_shop = ' INNER JOIN `'._DB_PREFIX_.'cms_category_shop` csON (bcp.`id_cms_category` = cs.`id_cms_category`)';$where_shop = ' AND cs.`id_shop` = '.(int)$id_shop.' AND cl.`id_shop` = '.(int)$id_shop;} Edited May 23, 2016 by john77100 (see edit history) Link to comment Share on other sites More sharing options...
john77100 Posted May 24, 2016 Author Share Posted May 24, 2016 Bonjour ndiaga Merci pour votre message J'ai essayer a plusieurs reprise de changer le code. A chaque fois j'ai une page blanc sur le site . Avez vous directement le fichier blocktopmenu.php déjà modifié ? merci d'avance Link to comment Share on other sites More sharing options...
john77100 Posted May 24, 2016 Author Share Posted May 24, 2016 Super ça fonctionne !!!! merci beaucoup bonne fin de journée Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now