View Single Post
  #10  
Old 01-14-2008, 04:02 PM
 
sportruck sportruck is offline
 

Advanced Member
  
Join Date: Dec 2003
Posts: 70
 

Default Re: Adding 7 days to orders management searches

To add the 7 days order search to the Quick Menu you need to change 2 php files.

The array for the quick menu is located in admin/quick_menu.php

After:
Code:
$quick_menu[$group_name][] = array ("link" => $xcart_catalogs["admin"]."/orders.php?date=W", "title" => func_get_langvar_by_name("lbl_search_this_week_orders"));

Add:
Code:
$quick_menu[$group_name][] = array ("link" => $xcart_catalogs["admin"]."/orders.php?date=7", "title" => "All orders last 7 days");

You also need to change include/orders.php

Change:
Code:
# # Quick orders search # $go_search = false; if (!empty($date) && in_array($date, array("M","W","D"))) { $search_data["orders"]["date_period"] = $date; $go_search = true; }

To:
Code:
# # Quick orders search # $go_search = false; if (!empty($date) && in_array($date, array("M","W","D","7"))) { $search_data["orders"]["date_period"] = $date; $go_search = true; }

To make this work you also need to add the "date condition" code to include/orders.php as described in my other post.
Reply With Quote