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.



