mvandijk Posted February 17, 2014 Share Posted February 17, 2014 Hi, I recently updated my Prestashop to the latest version (came from 1.5.4.1). On the old one, I had a single level dropdown menu. Now it shows multiple levels of depth. Where can I change this? So what I'm looking for is a way to hide the 'subsubcategory'. Category item - Subcategory 1 - - subsubcategory - Subcategory 2 Thanks a lot in advance for your replies! Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 you modified something in module core (in version 1.5.4.1) ? im asking because this what you've got is how the module works, so i suppose that you changed something am i right? Link to comment Share on other sites More sharing options...
mvandijk Posted February 18, 2014 Author Share Posted February 18, 2014 Hi Vekia, Thank you for your response. If the current state is how the module works then I guess some things have been changed in the core. Would you know where I could look for those changes? I can compare 1.5.6.2 (on a backup) with the 1.5.4.1 version Thanks Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 check blocktopmenu.php especially getCategory function Link to comment Share on other sites More sharing options...
mvandijk Posted February 18, 2014 Author Share Posted February 18, 2014 I compared the two blockropmenu.php files (from webshop.com/modules/blocktopmenu) and they seem to be the same :/ Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 strange, i think that the problem is a bit different, it is related to cache after update you jest cleared it and menu probably regenerated own code, this is why (probably) you see more categories now. Link to comment Share on other sites More sharing options...
mvandijk Posted February 18, 2014 Author Share Posted February 18, 2014 Hi vekia, I would like to thank you for your help so far. I've seen you helping out a lot of people on these forums, thanks you very much. Is the blocktopmenu.php the only place I can make some changes to the menu? (By the way is that the one in the themes\modules folder or the one in the bigger \modules folder?) Link to comment Share on other sites More sharing options...
vekia Posted February 18, 2014 Share Posted February 18, 2014 php files are stored only in /modules/ directory (bigger one) Link to comment Share on other sites More sharing options...
mvandijk Posted February 19, 2014 Author Share Posted February 19, 2014 Ok so I added this in blocktopmenu.php, on line 716: if ($category->level_depth < 3) { It now only shows the first level of dropdowns! Thanks again vekia for helping me out! 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