Zen Cart Logo
Forums / All Other Contributions/Addons / Admin Profiles / Restrict Product Categories

Admin Profiles / Restrict Product Categories

Locked

Views: 1,468

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
17 Oct 2008, 12:13 PM
#1
mrgforce avatar

mrgforce

New Zenner

Join Date:
Oct 2008
Posts:
2
Plugin Contributions:
0

Admin Profiles / Restrict Product Categories

I'm brand new to Zencart. I'm hosted at GoDaddy.Com and installed Zencart thru my control panel. I then installed the "Admin Profile 1-0-7" and the "admin_user_restrict_product_categories" module, and did the box file revision, and somethings wrong.

I have no problem logging in as the main admin. Then I created another admin and wanted to restict that admin to only being able to get to and administer one (1) sub-category. The Tools Admin Settings shows me the Category I created, and underlying sub-categories, but there is no "Menu" check box to check like the ones above the Third Party Mods section. I believe those check boxes are used to activate that particular group of links. Hope I've explained that right.

All the sections like the main "Catalog Menu" and "Extras Menu" have a check box in front of it. The "Third Party Mods" section and the new "Categories" section below it do not have a check box in front of them. The one called "Categories", is where the sub-categories are listed, which is what I want to restrict access to.

Right now, I can check the sub-categories I created, and the main Category box, but nothing shows up in the menu bar for that when I log in as the restricted admin. All I see are the Stats, Orders, New Orders, New Customers boxes in the middle. No Menu Items at all.

If I check the "Catalog Menu" check box and the Categories check box that goes along with that menu item, then I see a menu item for Catalogs and it will show me all the categories and sub-categories under the Third Party listings, but won't allow me to pick which ones I want shown.

My modified extra box file, that I called ... categories_dhtml.php .... looks like this .....

<?php /** * @package admin * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: categories_dhtml.php - amendment for Admin Profiles 2006-04-17 by kuroi */ if (!defined('IS_ADMIN_FLAG')) { die('Illegal Access'); } $options = array( array('box' => BOX_CATALOG_CATEGORIES, 'page' => FILENAME_CATEGORIES) ); foreach ($options as $key => $value) if (page_allowed($value['page'])=='true') $za_contents[] = array('text' => $value['box'], 'link' => zen_href_link($value['page'], '', 'NONSSL')); ?>

Don't know what I've done wrong. Hope someone can help me with this. Thanks.

17 Oct 2008, 11:45 PM
#2
mrgforce avatar

mrgforce

New Zenner

Join Date:
Oct 2008
Posts:
2
Plugin Contributions:
0

Re: Admin Profiles / Restrict Product Categories

I was able to make this work up to a point.

I can give someone access and control over a main category, BUT I can't seem to make it where I can restrict control to just a sub-category of a main category.

Is this possible?

ALSO .....

Is there any way to remove the link to "Add New Category" from the main category screen WITHOUT effecting the main administrator's right to do so, but leave it on the sub-category screen for the limited admins, so that they're able to put in sub-categories, but just under their particular sub-category only, and not anywhere else?

Thanks.