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



Reply With Quote


