Jump to content

Vertical mega menu


StrefaBiznesu

Recommended Posts

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

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.

  1. Find the template files of the module.
  2. Create the same directory in your theme as in the module directory
  3. 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

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.

  1. Find the template files of the module.
  2. Create the same directory in your theme as in the module directory
  3. 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

 Here is an example for you.

Lets say you have a module like this ps_checkout in /modules directory

image.png.e73cc2542a7ac9e172d17d1be29b4ffc.png

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:

image.png.4d697adce659d49399286cdbaf1f1354.png

After you have created the path in your theme folder you should have this:

image.png.ec8321668fc71fd2c20046782f30e7b0.png

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.

  • Like 1
Link to comment
Share on other sites

15 minutes ago, stifler97 said:

 Here is an example for you.

Lets say you have a module like this ps_checkout in /modules directory

image.png.e73cc2542a7ac9e172d17d1be29b4ffc.png

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:

image.png.4d697adce659d49399286cdbaf1f1354.png

After you have created the path in your theme folder you should have this:

image.png.ec8321668fc71fd2c20046782f30e7b0.png

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...