Forums / All Other Contributions/Addons / Admin Users - Restrict Product Categories

Admin Users - Restrict Product Categories

Views: 4,911

Results 1 to 10 of 10
18 Aug 2008, 3:31 PM
#1
allcris avatar

allcris

New Zenner

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

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 .:clap:

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.

19 Mar 2009, 8:57 PM
#2
leisurering avatar

leisurering

New Zenner

Join Date:
Oct 2005
Posts:
3
Plugin Contributions:
0

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’

13 Oct 2009, 3:53 PM
#3
earthlingz avatar

earthlingz

New Zenner

Join Date:
Nov 2006
Posts:
8
Plugin Contributions:
0

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.

25 Feb 2010, 3:44 AM
#4
haitx avatar

haitx

New Zenner

Join Date:
Aug 2009
Posts:
6
Plugin Contributions:
0

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

24 Mar 2010, 6:51 PM
#5
designsdirect avatar

designsdirect

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

Re: Admin Users - Restrict Product Categories

EarthlingZ:

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)

24 Mar 2010, 7:00 PM
#6
designsdirect avatar

designsdirect

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

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?

26 Mar 2010, 2:34 PM
#7
designsdirect avatar

designsdirect

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

Re: Admin Users - Restrict Product Categories

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

26 Mar 2010, 2:43 PM
#8
designsdirect avatar

designsdirect

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

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
26 Mar 2010, 3:08 PM
#9
designsdirect avatar

designsdirect

New Zenner

Join Date:
Nov 2006
Posts:
12
Plugin Contributions:
0

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

20 Apr 2011, 3:30 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.