LearnWebDesignOnline.com is proudly hosted by Hostmonster.com

Let's say that you have created an second admin access for your sales representative. But you limit the feature access of the sales representative so that he/she does not have the full access to everything in the ZenCart admin control panel.
1. First of all, if you want to limit admin access, you should not do that for the main primary admin (the admin with id 1). You should always have at least one admin that always have full access.
Now we assume that you had created an second admin called "salesrep1" as described in tutorial showing how to create multiple admins.
2. Next you have to install the Admin Profiles plugin by following the install instruction in the downloaded plugin. If you need help, there is the Wiki and the Support Thread.
During installation, the install_admin_profiles.sql script assumes that your primary admin has admin id 1. If that is not the case, you can alter the sql script appropriately by changing all instances of the admin id value in the script from 1 to whatever id your primary admin is.
3. After installation, notice that in "Tools -> Admin Settings" there is the new orange icon with the P and there is a new button labeled "Permissions"

4. Click on the orange P icon for salesrep1 and you will see ...

5. Checkmark the admin pages that you want to give salesrep1. For example, if you want him/her to be able to process orders, then checkmark both the boxes shown above. The first box coresponds to the main menu item and the second box corresponds to the sub-menu item. Click "Save Changes". To exit, click "Update Another User".
6. Now when salerep1 logs in, he/she will see only the menu items that you had checkmarked.

The reason why the menu "Linkpoint CC Review" still shows up was because that third party module has a box file in "admin/includes/boxes" which had not been altered during the install process. The other box files had been altered in the install process when the box files got overwritten by the Admin Profiles box file. If you want to remove the "Linkpoint CC Review" menu, you will have to alter its box file in the same fashion.
The salesrep1 admin will always be able to see the main admin initial page. But when he/she clicks on the customer name to see the customer info, he will encounter this error...

However, note that the admin access limitation is not entirely foolproof. The underlying PHP pages are still functional; it's just the menu access point to it is hidden. A sufficiently technical person can therefore access the underlying PHP pages.
The above tutorial refers to version 1.07 of Admin Profiles.
|
This book is reviewed and endorsed by the ZenCart team.
|
This book provides you with information to effectively customize your store -- covering the important aspects of templates, its file structure, and its override methodology. |