tony96 Posted May 2, 2018 Share Posted May 2, 2018 Hi all, I need to hide some items from the main menu to specific role user, for example the visitors cant see products item in menu but registered can. How can I do it? Link to comment Share on other sites More sharing options...
tdsoft Posted May 2, 2018 Share Posted May 2, 2018 Main menu does not have products item at there Are you sure for this issue? Link to comment Share on other sites More sharing options...
jgamio Posted May 2, 2018 Share Posted May 2, 2018 You need make changes on the module to be able to do that Link to comment Share on other sites More sharing options...
tony96 Posted May 2, 2018 Author Share Posted May 2, 2018 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 More sharing options...
jgamio Posted May 2, 2018 Share Posted May 2, 2018 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 More sharing options...
tony96 Posted May 2, 2018 Author Share Posted May 2, 2018 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 More sharing options...
jgamio Posted May 2, 2018 Share Posted May 2, 2018 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 More sharing options...
tony96 Posted May 2, 2018 Author Share Posted May 2, 2018 Im gonna try this. Thanks a lot. 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