Jump to content

Category wise Permission for Employee


Recommended Posts

Hi Friends,

I am facing a problem in BO. Like I wanted to give PERMISSION to every Employee for accessing of each Category.
But somehow i’ve tried it. Alas! not getting the actual result.

The steps i’ve taken to solve this issue, might be helpful to you to understand what I've done and what I need to do...

Step 1. Goto BO and click on Tools>>Tab. Then click on Add New Tab.

Step 2. You shall able to see the Four rows like— Name, Class Name, Icon, Parent(Where you want to hook or shows under tab).

Step3. Give a proper Class Name that will not match other class name under the folder /prestahop/admin/tabs.

Step4. If you’ll set the hook to Home then your new tab will be shown on a new tab. For other options the new tab will go under that option/tab.

Step5. Create a file with same name of classname. And the file extension will be .php. You have to save the file in folder /prestahop/admin/tabs.

Code behind the classname.php have attached as AdminCat.php file name.

Actually I have created this code to show all Categories in tab view i.e. when you’ll click on your new tab, will show the categories.

But my primary issue was Category wise permission. So, I have taken a tricky way i.e. I’ve four categories and want to create permissions for every Category to Employee. To achieve my goal I had created four new tab with the name of Category name in short under my newly created Custom Tab. And also created Four Admin<>.php PHP file in the previously directed directory. Each Category tab will show Corresponding Category.

To show Each category in Corresponding tab, getting unknown error like all categories are coming to every tab…. I know that I have to change some code. But I can't Understand where have to change to get the actual result.

If you would get the solution of my issue please knock me.

23641_vDFZdG5uWsU8dmtLrVoN_t

AdmiCat.php

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

Same problem here, is there any update here??? it's critical for our company to be able to create different profiles where each employee will be able to handle only the items the have uploaded.


Please help us here...

Best Regards

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...
Hello,

Same problem here, is there any update here??? it's critical for our company to be able to create different profiles where each employee will be able to handle only the items the have uploaded.


Please help us here...

Best Regards



Yes, I need that kind of modules also.
Link to comment
Share on other sites

  • 3 months later...

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