eloicolo Posted January 23, 2019 Share Posted January 23, 2019 Hello, I have a prestashop 1.7.4 with the template TT_Tools, I'm trying to sort the sub-categories of the side menu but I have not been successful. I tried adding a class in the folder / override / modules / ps_mainmenu class Ps_MainMenuOverride extends Ps_MainMenu implements WidgetInterface { protected function generateCategoriesMenu ($ categories, $ is_children = 0) { $ categories = $ this-> sortCategories ($ categories); return parent :: generateCategoriesMenu ($ categories, $ is_children); } ... But it does not work, Any suggestions? Link to comment Share on other sites More sharing options...
tdsoft Posted January 24, 2019 Share Posted January 24, 2019 1. You can NOT override any classes, controller of a module ( example /modules / ps_mainmenu) Only override: ROOT/classes or ROOT/controllers 2. you can open that template and modify to add your source? 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