5146b87fa287d56a7f5368d5a2b16d160f45c00c
When a category access is restricted by user group, the category is still displayed in the menu, even if the user is not a member of one of those group. It is described here : https://github.com/PrestaShop/PrestaShop/issues/9924 There has been 2 different corrections that have been proposed on this thread, but none of them has been merged in the module (there is some commits for at least one proposition in the dev branch, but not in master branch). I think my changes are a bit simpler. I use the "user_groups" property that was already defined in the Ps_MainMenu class, but never initialized.
Main Menu
About
Adds a new horizontal menu to the top of your e-commerce website.
Contributing
PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements.
Requirements
Contributors must follow the following rules:
- Make your Pull Request on the "dev" branch, NOT the "master" branch.
- Do not update the module's version number.
- Follow the coding standards.
Process in details
Contributors wishing to edit a module's files should follow the following process:
- Create your GitHub account, if you do not have one already.
- Fork the project to your GitHub account.
- Clone your fork to your local machine in the
/modulesdirectory of your PrestaShop installation. - Create a branch in your local clone of the module for your changes.
- Change the files in your branch. Be sure to follow the coding standards!
- Push your changed branch to your fork in your GitHub account.
- Create a pull request for your changes on the 'dev' branch of the module's project. Be sure to follow the commit message norm in your pull request. If you need help to make a pull request, read the Github help page about creating pull requests.
- Wait for one of the core developers either to include your change in the codebase, or to comment on possible improvements you should make to your code.
That's it: you have contributed to this open-source project! Congratulations!
Description
Releases
1
initial release
Latest
Languages
PHP
38.5%
JavaScript
23.2%
Go Template
19.8%
CSS
17.2%
Smarty
0.7%
Other
0.6%