StrefaBiznesu Posted July 23, 2022 Share Posted July 23, 2022 Hello. I have vertical menu on left panel showing categories. It not showing all of them but instead there's a button "show more". I need to disable it, to show all the categories. It a custom theme menu but theme developer won't help me on that. Any clue, how to deal with it? Link to comment Share on other sites More sharing options...
Ali Samie Posted July 23, 2022 Share Posted July 23, 2022 I think you can easily just override the template files of the module in your theme for the reason that you have all the categories in template but they are just hidden under the "show more" button. Find the template files of the module. Create the same directory in your theme as in the module directory Override the files you need to change to go with the style of your theme https://devdocs.prestashop.com/1.7/themes/reference/overriding-modules/ Link to comment Share on other sites More sharing options...
StrefaBiznesu Posted July 23, 2022 Author Share Posted July 23, 2022 2 minutes ago, stifler97 said: I think you can easily just override the template files of the module in your theme for the reason that you have all the categories in template but they are just hidden under the "show more" button. Find the template files of the module. Create the same directory in your theme as in the module directory Override the files you need to change to go with the style of your theme https://devdocs.prestashop.com/1.7/themes/reference/overriding-modules/ Thanks. But I have no idea about overrides even with guides. Link to comment Share on other sites More sharing options...
Ali Samie Posted July 23, 2022 Share Posted July 23, 2022 Here is an example for you. Lets say you have a module like this ps_checkout in /modules directory Then you want to change the style of this file: "displayAdminOrderLeft.tpl" As you can see in the image exists in this path: "/modules/ps_checkout/views/templates/hook/" What you need to do is to create this path in your theme. Just like this image: After you have created the path in your theme folder you should have this: Then you need to just copy and paste the file. Now you are ready to override the template file of your module in your theme without touching the module. That's it. As long as this file exists in this path, the prestashop core would find this and instead of the core file in module, this overridden file will be loaded. 1 Link to comment Share on other sites More sharing options...
StrefaBiznesu Posted July 23, 2022 Author Share Posted July 23, 2022 15 minutes ago, stifler97 said: Here is an example for you. Lets say you have a module like this ps_checkout in /modules directory Then you want to change the style of this file: "displayAdminOrderLeft.tpl" As you can see in the image exists in this path: "/modules/ps_checkout/views/templates/hook/" What you need to do is to create this path in your theme. Just like this image: After you have created the path in your theme folder you should have this: Then you need to just copy and paste the file. Now you are ready to override the template file of your module in your theme without touching the module. That's it. As long as this file exists in this path, the prestashop core would find this and instead of the core file in module, this overridden file will be loaded. The question is how to i remove those view more buttons from the code, how do I locate them. Link to comment Share on other sites More sharing options...
Ali Samie Posted July 23, 2022 Share Posted July 23, 2022 Please share a URL so I can check the website Link to comment Share on other sites More sharing options...
StrefaBiznesu Posted July 23, 2022 Author Share Posted July 23, 2022 Still need a helping hand on this. Link to comment Share on other sites More sharing options...
Ali Samie Posted July 23, 2022 Share Posted July 23, 2022 For anyone who is going to help this: 1. I have searched for it, this hide/show function happens in a js file of a the theme volty mega menu module. 2. I checked the files of the module and the show more button is commented out. 3. I cleared the cache from an FTP accout that he gave me. I do not know what to check more 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