This is how I got this to work...by no means the best way...
/admin/includes/boxes create new file easypopulate.php
<?php
/*
$Id: easypopulate.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $
Brad I Guess....
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce
Released under the GNU General Public License
*/
?>
<!-- easypopulate //-->
<tr>
<td>
<?php
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_EASYPOPULATE,
'link' => tep_href_link(FILENAME_EASYPOPULATE, 'selected_box=easypopulate'));
if ($selected_box == 'easypopulate') {
$contents[] = array('text' =>
//Admin begin
tep_admin_files_boxes(FILENAME_EASYPOPULATE, BOX_EASYPOPULATE_TEXT));
// tep_admin_files_boxes(FILENAME_STATS_PRODUCTS_PURCHASED, BOX_REPORTS_PRODUCTS_PURCHASED) .
// tep_admin_files_boxes(FILENAME_STATS_CUSTOMERS, BOX_REPORTS_ORDERS_TOTAL));
//Admin end
}
$box = new box;
echo $box->menuBox($heading, $contents);
?>
</td>
</tr>
<!-- easypopulate_eof //-->
it is reports.php modified a bit.
add to admin/includes/languages/english.php (my language)
//easypopulate test
define('BOX_HEADING_EASYPOPULATE', 'Product Population');
define('BOX_EASYPOPULATE_TEXT', 'Easy Populate');
add to admin/filenames.php
define('FILENAME_EASYPOPULATE', 'easypopulate.php');
add to admin/column_left.php
if (tep_admin_check_boxes('easypopulate.php') == true) {
require(DIR_WS_BOXES . 'easypopulate.php');
}
I think thats it. tested ok so far...
brad