Forums / Customization from the Admin / How can i hide my store order From Other admin..

How can i hide my store order From Other admin..

Views: 2,090

Results 1 to 8 of 8
16 Apr 2014, 7:56 PM
#1
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

How can i hide my store order From Other admin..

i am using zen cart 1.5.1

I would like to hide my order from another admin... Is there any way to hide??

Thanks

16 Apr 2014, 9:05 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: How can i hide my store order From Other admin..

jennydutch:

i am using zen cart 1.5.1

I would like to hide my order from another admin... Is there any way to hide??

Thanks

Could you explain in a bit more detail what you are trying to achieve??

Cheers / Frank

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Apr 2014, 9:21 PM
#3
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: How can i hide my store order From Other admin..

frank18:

Could you explain in a bit more detail what you are trying to achieve??

Cheers / Frank

admin page....

Admin Access Management > user > super user..

I want only super user can see my new order.. i want deny from all other admin to see new order..

Attachment 13996

17 Apr 2014, 10:19 AM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How can i hide my store order From Other admin..

jennydutch:

admin page....

Admin Access Management > user > super user..

Click the link for 'Admin Profiles" and create a new profile selecting only the things you wish to allow.

Next, Click the link for Admin Users and add a new user, giving them the profile configured above.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

17 Apr 2014, 12:23 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,110
Plugin Contributions:
56

Re: How can i hide my store order From Other admin..

RodG:

Click the link for 'Admin Profiles" and create a new profile selecting only the things you wish to allow.

Next, Click the link for Admin Users and add a new user, giving them the profile configured above.

Cheers
RodG
Rod, I think that what jennydutch is asking is how to suppress the admin index-page "New Customers" and "New Orders" boxes. If that's the case, then the answer is "with a custom-code change" since the information on the admin's index page is available to all admins.

17 Apr 2014, 1:34 PM
#6
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: How can i hide my store order From Other admin..

jennydutch:

i am using zen cart 1.5.1
I would like to hide my order from another admin... Is there any way to hide??

If lat9 is correct, the code mod you'll need is quite simple:

load /YOURADMIN/index.php into a text editor then look for the <div class=reportBox sections that you wish to hide.. , for example, NEW_CUSTOMERS.

<div class="reportBox">
  <?php  if (zen_is_superuser()) { ?>  
<div class="header"><?php echo BOX_ENTRY_NEW_CUSTOMERS; ?> </div>
  <?php  $customers = $db->Execute("select c.customers_id as customers_id, c.customers_firstname as customers_firstname, 
c.customers_lastname as customers_lastname, a.customers_info_date_account_created as customers_info_date_account_created,
 a.customers_info_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_CUSTOMERS_INFO . " a on c.customers_id = a.custom
ers_info_id order by a.customers_info_date_account_created DESC limit 5");


  while (!$customers->EOF) {
    $customers->fields['customers_firstname'] = zen_output_string_protected($customers->fields['customers_firstname']);
    $customers->fields['customers_lastname'] = zen_output_string_protected($customers->fields['customers_lastname']);
    echo '              <div class="row"><span class="left"><a href="' . zen_href_link(FILENAME_CUSTOMERS, 'search=' . $c
ustomers->fields['customers_lastname'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="contentlink">'. $customers-
>fields['customers_firstname'] . ' ' . $customers->fields['customers_lastname'] . '</a></span><span class="rigth">' . "\n
";
    echo zen_date_short($customers->fields['customers_info_date_account_created']);
    echo '              </span></div>' . "\n";
    $customers->MoveNext();
  }
  } // Not Superusrer
?>
</div>

Add the lines in red

Repeat for any other 'Boxes'

Cheers
RodG

ps. I just happen to be doing some work of my own on this page, so figuring this it was quite convenient/good timing.

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Apr 2014, 10:04 AM
#7
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: How can i hide my store order From Other admin..

lat9:

Rod, I think that what jennydutch is asking is how to suppress the admin index-page "New Customers" and "New Orders" boxes. If that's the case, then the answer is "with a custom-code change" since the information on the admin's index page is available to all admins.

Thanks For explained this.... this is exactly i want... :) :blush:

18 Apr 2014, 10:07 AM
#8
jennydutch avatar

jennydutch

New Zenner

Join Date:
Apr 2014
Location:
Bronx, New York, United States
Posts:
83
Plugin Contributions:
0

Re: How can i hide my store order From Other admin..

RodG:

If lat9 is correct, the code mod you'll need is quite simple:

load /YOURADMIN/index.php into a text editor then look for the <div class=reportBox sections that you wish to hide.. , for example, NEW_CUSTOMERS.

<div class="reportBox"> <?php if (zen_is_superuser()) { ?> <div class="header"><?php echo BOX_ENTRY_NEW_CUSTOMERS; ?> </div> <?php $customers = $db->Execute("select c.customers_id as customers_id, c.customers_firstname as customers_firstname, c.customers_lastname as customers_lastname, a.customers_info_date_account_created as customers_info_date_account_created, a.customers_info_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_CUSTOMERS_INFO . " a on c.customers_id = a.custom ers_info_id order by a.customers_info_date_account_created DESC limit 5");

while (!$customers->EOF) {
$customers->fields['customers_firstname'] = zen_output_string_protected($customers->fields['customers_firstname']);
$customers->fields['customers_lastname'] = zen_output_string_protected($customers->fields['customers_lastname']);
echo ' <div class="row"><span class="left"><a href="' . zen_href_link(FILENAME_CUSTOMERS, 'search=' . $c ustomers->fields['customers_lastname'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" class="contentlink">'. $customers-

fields['customers_firstname'] . ' ' . $customers->fields['customers_lastname'] . '</a></span><span class="rigth">' . "\n
";
echo zen_date_short($customers->fields['customers_info_date_account_created']);
echo ' </span></div>' . "\n";
$customers->MoveNext();
}
} // Not Superusrer
?>

</div> ``` > > Add the lines in red > > Repeat for any other 'Boxes' > > Cheers > RodG > > ps. I just happen to be doing some work of my own on this page, so figuring this it was quite convenient/good timing.

YOu are superB :laugh:
Thanks a lot... iTs worked .. m really happy :)
God bless you... :)