[HACK] After Admin Login, Go DIRECTLY To VIEW ORDERS Page

Modules, Add-ons and custom code that's more than just a quick hack or Mod.
Post Reply
CharlieFoxtrot
Confirmed
Confirmed
Posts: 413
Joined: Sun Aug 09, 2009 1:23 pm

[HACK] After Admin Login, Go DIRECTLY To VIEW ORDERS Page

Post by CharlieFoxtrot »

Whenever I login to the admin pages, the admin Home Page would load and 99.9% of the time, I will ALWAYS go directly to the "View All Orders" page.

Although this hasn't always been the case (especially when setting-up or tweaking the ISC configuration)... now that I'm settled-in with my store's configuration and settings, the most common task that I now perform is with customer orders.

So, I wanted to bypass the Home Page, and have the login take me DIRECTLY to the "View All Orders" page instead. ~ Here's what I did.

WORKS WITH: ISC VERSION 4.07

FILE: admin\includes\classes\class.auth.php
FIND (NEAR LINE #220)

Code: Select all

<script type="text/javascript">
	document.location.href='index.php?ToDo=';
</script>
================
CHANGE TO:
(It's just a personal preference, but I like to comment-out original lines instead of deleting them. This makes it easy to restore, or refer to, the original code in the event something goes wrong.)
================

Code: Select all

<script type="text/javascript">
	// NEW DEFAULT ADMIN PAGE AFTER LOGIN... GO DIRECTLY TO NEW ORDERS
	//document.location.href='index.php?ToDo=';
	document.location.href='index.php?ToDo=viewOrders';
</script>
Make a backup copy of the file that's on your server. Upload the changes... and test.

Now, whenever you log in.. the default landing page is "New Orders".

ERRORS? COMMENTS? IMPROVEMENTS?? ~~ Let me know! :-)
ISC 4.0.7

"... and let's be honest that whole "by design" thing is getting old too."
Post Reply