Jump to content

How to hide some menu items


tony96

Recommended Posts

11 minutes ago, jgamio said:

You need make changes on the module to be able to do that

Changes like check the role group? And make 2 o 3 differents menus and use them depending on the role?

Thanks for answer

Link to comment
Share on other sites

Yes something like that or hide the specific menu item on your module

 

Search on your theme the module you use to show the menu is a tpl where the info is push you can change that tpl using smartys values

 

are you on 1.6 or 1.7

Link to comment
Share on other sites

14 minutes ago, jgamio said:

Yes something like that or hide the specific menu item on your module

 

Search on your theme the module you use to show the menu is a tpl where the info is push you can change that tpl using smartys values

 

are you on 1.6 or 1.7

I've tried with the classic theme from prestashop and I can't do it, so I guess i have to code something. Did you do that?

Im using 1.7

Link to comment
Share on other sites

look the

classis/modules/ps_mainmenu/ps_mainmenu.tpl

there the menu is build

 

{$customer.id_default_group} talk you the default group of the active customer

{node.page_identifier } manu item to hide or show the data

 

You need figure out your  I have never do that

 

I think is easy do it from the module but here you dont take the core code .

 

 

 

 

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...