Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Admin Index Page to Orders


b2995

Recommended Posts

Posted

I've searched and searched...maybe searching the wrong key words...

 

How do you change the default page when you log into Admin? I'd like it to go straight to Admin/Orders.php

 

I've tried changing the below code to FILENAME_ORDERS...didn't work...

 

tep_redirect(tep_href_link($page, $get_string));

} else {

tep_redirect(tep_href_link(FILENAME_DEFAULT));

 

Thank you!

Posted

do you have orders.php file in the following location

 

admin/includes/modules/index

 

 

all admin index templates in the modules/index folder should show by default in main admin screen

Posted

Just change the link you use to go to your admin pages.

 

For example, if you normally go to this link:

 

http://www.mysite.com/admin

then use this instead:

 

http://www.mysite.com/admin/orders.php?selected_box=customers

It will redirect you to the login page, then send you back to the orders page after you've logged in.

 

 

I had some problems with the correct menu showing in the left sidebar, and the "?selected_box=customers" won't work unless you have PHP 5 or higher. So if that's an issue for you, then you can change this code in admin/includes/application_top.php:

 

// default open navigation box
 if (!tep_session_is_registered('selected_box')) {
   tep_session_register('selected_box');
   $selected_box = 'configuration';
 }

to default to the "customers" menu like so:

 

// default open navigation box
 if (!tep_session_is_registered('selected_box')) {
   tep_session_register('selected_box');
   $selected_box = 'customers';
 }

 

.

Check out Chad's News.

  • 1 month later...
Posted

Hi Chad!

 

I'm glad I checked up on my old posts! So simple but so helpful! Thanks for the tip! ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...