Yes.
That's very old-fashioned coding that probably got carried over from osCommerce. As you say it has no effect and is probably there to indicate taht you could add a condition if your wanted - though I'm not sure why you would do so.
Contributions is the dumping place for those files that are auto-added and therefore where Admin Profiles doesn't know where to put them. These might be files accessed before the box file is amended, or files that simply don't appear on the Admin menu and therefore don't have a box file entry.
Apart from at initial installation time, the default setting for Admin Profiles is to assume that access is permitted only when explicitly granted by somebody with rights to do so. Although user #1 is the default super user at installation time, AP doesn't know what's happened since.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
It's normal for Super Orders which has a number of options that aren't accessed through the Zen Cart menu and so don't appear in the box files, so the first Admin Profiles knows of them is when they get auto-added when you try to access them. Being a good access control script it won't let you use them until it's told that's OK.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
kuroi (and thomasw98)
thanks for the answers. I am feeling much more comfortable with both the mod and my increasing abilities with php.
Since order processing has to be done from the Admin panel by other employees, this mod is invaluable to keep straying fingers from making inadvertant changes to the site. Thanks.![]()
I'm having trouble with my install. I've tried all the patches and still don't have the little "P". Not sure I understand step 3. Do I have to do that if I'm running zencart 1.38a?
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Kuroi is quite correct. You need to do the patches. May I suggest that if you don't already have a good text editor, download a copy of the free editor called Notebook++. (I'm assuming you're using a PC) It will show you line numbers and will highlight the php code to make it easier to follow. Open the install instructions in one window and the admin files (e.g. admin.php) in a second window. Then you can search for the lines mentioned and cut and paste the patches from the install instructions to the file. BE SURE YOU MAKE A BACKUP of the file before you edit it and don't store the backup in the same folder.
If you've got other admin add-on modules like Easy Populate, Super Orders, How Did You Hear About Us, or Tabbed Products, you need to edit the 'box' files as described in the special set of instructions. Trust me....it's easy. Just more cut and paste between files.
Hope this helps and happy Zenning.![]()
In the install notes it says "If you are using a database prefix for your Zen Cart tables, you must either: run the install_adminlevels.sql file using Zen Cart's Admin > Tools > Install SQL Patch facility, or edit the file to change the prefix for all create table and insert statements, before running it using your preferred tool."
however when I download the zip file from ZenCart the only files in it that were close to that are "install_admin_profiles.sql" and "upgrade_admin_profiles.sql".
Is it a typo in the install instructions or am I missing the file "install_adminlevels.sql"
Thanks! I really need to get this mod to work as my client has a call center set up to log in and take phone orders beginning 3/3.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Aw thanks! So which one am I supposed to install?
The installation is daunting to me and I'm hoping I don't screw anything up as I have spent many many hours building the store.
I installed ZenCart via the Godaddy automatic install and database creation. Should I just be able to drop the files in their respective folders since I haven't done any mods other then a new theme install?
Bookmarks