Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Plugin Contributions
    0

    Idea or Suggestion Admin Users - Restrict Product Categories

    (Install Notes for Admin Profiles v1.0.8)
    Hi,
    I tried to install the Admin Users - Restrict Product Categories from Home :: Downloads :: Admin Tools :: Admin Users - Restrict Product Categories. on Zen Cart 1.3.8a on a clean zen cart install.

    But it cam up with a few errors.

    First error was loading the SQL patch install_admin_profiles.sql from the Zen Cart's Admin > Tools > Install SQL Patch facility.

    It came up with a error: that it can't create the table admin_allowed_categories because already exists.

    And second after this was fixed it cam up with another error/warning when trying to add new Categories

    Warning: Cannot modify header information

    I search everywhere for a post on this but i couldn't find anything direct related to this mod so I fix the problems and here is the fix .

    Before installing anything edit the file install_admin_profiles.sql all the way to the end :
    Replace

    #
    # Create table structure for table `admin_allowed_categories`
    #

    DROP TABLE IF EXISTS `admin_allowed_categories`;
    CREATE TABLE `admin_allowed_pages` (
    `categories_id` int(11) NOT NULL default '0',
    `admin_id` int(11) NOT NULL default '0'
    ) TYPE=MyISAM;

    with this:

    #
    # Create table structure for table `admin_allowed_categories`
    #

    DROP TABLE IF EXISTS `admin_allowed_categories`;
    CREATE TABLE `admin_allowed_categories` (
    `categories_id` int(11) NOT NULL default '0',
    `admin_id` int(11) NOT NULL default '0'
    ) TYPE=MyISAM;

    Second thing :
    For Zen Cart 1.3.8a version if you use the pre-patched files in the folder named "extras - patched files for ZC1.3.8".

    Edit the file categories.php line 168 or search for print_r($sql_allow);
    and comment the line out like this
    //print_r($sql_allow);
    or delete it.

    Happy Carting !!!

    Thank you Archelay for this great mod.

  2. #2
    Join Date
    Oct 2005
    Posts
    3
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    Thanks for that, I too had exactly the same problem but thanks to your edits its working perfectly.

    I have noticed that a restricted user can see all categories and turn off or delete categories other than the ones restricted to the user.
    Does anyone have an answer for this problem?

    Using ‘Zen Cart 1.3.8a’ and ‘users__restrict_product_categories_1-0-8’

  3. #3
    Join Date
    Nov 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    Did you ever find an answer to this problem? It sounds as if a restricted user is not restricted at all.

  4. #4
    Join Date
    Aug 2009
    Posts
    6
    Plugin Contributions
    0

    red flag Re: Admin Users - Restrict Product Categories

    Dear all,

    I used "admin_users__restrict_product_categories_1-0-8" module for my shoponline. Before, all run well but now I don't see categories permissions. I try to retrieval and fix error but I don't know why it be change?

    Help me fix my error.

    Thank You.

    HaiTX


  5. #5
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    Quote Originally Posted by EarthlingZ View Post
    Did you ever find an answer to this problem? It sounds as if a restricted user is not restricted at all.

    Although its not fool proof, i have simply edited the icons to prevent any admin profile users from deleting such categories (e.g. store/admin/images/icon_delete.gif)

  6. #6
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    ADMIN PROFILES - RESTRICT CATEGORIES

    Would it be possible to turn off the actions for all categories apart from the categories the user is allowed to see?

  7. #7
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    And, is there a way to make all restricted categories invisible???

  8. #8
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    Common Dudes, I know theres a genius out there waiting to make a beautifull snippet of PHP code to make these 3 simple actions work - then we're nearly talking EBAY -

    1. Disable Actions for restricted categories
    2. Hide Restricted Categories
    3. Autoname Images in product image upload

  9. #9
    Join Date
    Nov 2006
    Posts
    12
    Plugin Contributions
    0

    Default Re: Admin Users - Restrict Product Categories

    Am also able to pay anyone who can demonstrate some of these simple functions (1-3 Most important)! - [email protected]

    Website: http://www.englishfurniture.info

    To re cap:

    1. Hide restricted Categories
    2. Disable Actions on Restricted Categories
    3. Auto Rename images on product image upload to main directory
    4. Automated admin register
    5. Automated Create admin name Subcategory under each main category.

    Will also publish results on zen cart forum for free if the solutions are found

    Many thanks
    Matt

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Admin Users - Restrict Product Categories

    Just a note, since a function like this is requested regularly, that the mod's support thread is at Admin Users - Restrict Product Categories Support Thread, but the author has not posted on the forum since July 2009.

 

 

Similar Threads

  1. v139h Restrict some shipping modules to wholesale users
    By ilmarchez in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 21 May 2015, 05:47 AM
  2. Restrict Customer access to certain products or product categories.
    By henryk in forum Managing Customers and Orders
    Replies: 1
    Last Post: 27 Nov 2008, 08:45 AM
  3. Admin Profiles / Restrict Product Categories
    By MrGForce in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Oct 2008, 12:45 AM
  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