cille5 Posted November 11, 2015 Share Posted November 11, 2015 See image attachment from problem. Link to comment Share on other sites More sharing options...
NemoPS Posted November 11, 2015 Share Posted November 11, 2015 Blocktopmenu.php, you must remove the top level anchor$html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>';Add a condition to check the level depth. If it's one, remove the link, otherwise leave it Link to comment Share on other sites More sharing options...
cille5 Posted November 11, 2015 Author Share Posted November 11, 2015 I got custom theme and on folder /modul/blocktopmenu/ I only got Blocktopmenu.tpl file Link to comment Share on other sites More sharing options...
NemoPS Posted November 13, 2015 Share Posted November 13, 2015 Yeah, you need to change the core file, in the main modules/ folder Link to comment Share on other sites More sharing options...
cille5 Posted November 13, 2015 Author Share Posted November 13, 2015 Thank you master Nemo. I got this code in php file. What should I edit to disable link? /* Whenever a category is not active we shouldnt display it to customer */ if ((bool)$category['active'] === false) { continue; } $html .= '<li'.(($this->page_name == 'category' && (int)Tools::getValue('id_category') == (int)$category['id_category']) ? ' class="sfHoverForce"' : '').'>'; $html .= '<a href="'.$link.'" title="'.$category['name'].'">'.$category['name'].'</a>'; if (isset($category['children']) && !empty($category['children'])) { $html .= '<ul>'; $html .= $this->generateCategoriesMenu($category['children'], 1); if ((int)$category['level_depth'] > 1 && !$is_children) { $files = scandir(_PS_CAT_IMG_DIR_); if (count(preg_grep('/^'.$category['id_category'].'-([0-9])?_thumb.jpg/i', $files)) > 0) { $html .= '<li class="category-thumbnail">'; Link to comment Share on other sites More sharing options...
NemoPS Posted November 14, 2015 Share Posted November 14, 2015 Well you can comment out the a href part and just leave the name.p.s. Master makes me feel like Yoda I'm too far from that, but thanks 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