Zen Cart Logo
Forums / All Other Contributions/Addons / Admin profile addon - disable sale figures

Admin profile addon - disable sale figures

Locked

Views: 926

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Dec 2008, 7:35 AM
#1
alimtlai avatar

alimtlai

New Zenner

Join Date:
Sep 2008
Posts:
87
Plugin Contributions:
0

Admin profile addon - disable sale figures

I want to disable the viewing of sales records from my employees. I can successfully disable certain manual options by using the below "admin profile" addon.

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=86

However, there is a loophole. When user click the "admin home" link around the top right hand corner, they can see a summary of my sale figures. Is there anyway to disable this link in the admin panel? Or simply disable the summary page?

Can any expert help?

26 Dec 2008, 8:55 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin profile addon - disable sale figures

Certainly, the extra code that you would need to insert can be found in the Admin Profiles support thread.

26 Dec 2008, 11:06 AM
#3
alimtlai avatar

alimtlai

New Zenner

Join Date:
Sep 2008
Posts:
87
Plugin Contributions:
0

Re: Admin profile addon - disable sale figures

I found the following information about how to disable the "admin home page". However, I'm not familiar of php stuff. I think I will not be able to do it myself. Does anyone had developed a version base on zen-cart 1.3.8? Or simply send me the exact code and the location needed to be replaced?

Quote

What appears on the Admin Home page is controlled by the admin/index.php file. There's not a switchable way, though you could use CSS to set display:none for the class .reportBox. This would turn the home page content off for all users. If you wanted more precision you would need to change the PHP by inserting "if" statement in there to restrict display to specific values of $_SESSION['admin_id'].

End Quote

26 Dec 2008, 11:29 AM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Admin profile addon - disable sale figures

I don't have a current version of the file with that information in, but the step-by-step guide for building one is very clear. You can find it here.