Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Posts
    2
    Plugin Contributions
    0

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

  2. #2
    Join Date
    Oct 2008
    Posts
    2
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. Product Access for Admin Profiles?
    By dannyd in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 3 Apr 2013, 06:27 AM
  2. Replies: 2
    Last Post: 18 Mar 2013, 06:10 PM
  3. Admin Users - Restrict Product Categories
    By allcris in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 20 Apr 2011, 04:30 PM
  4. Admin Users - Restrict Product Categories Support Thread
    By anafor in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Aug 2008, 09:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg