Guest Posted December 31, 2005 Share Posted December 31, 2005 I am looking for a total sales mod, or even a monthly sales mod to add to my admin page. I have tried to install sales_report_v1.3 but cannot seem to get it to work. For someone fluent in php, it will probably be a piece of cake. If anyone could help, I would greatly appreciate it. Thanks. Quote Link to comment Share on other sites More sharing options...
tina_boots Posted December 31, 2005 Share Posted December 31, 2005 I am looking for a total sales mod, or even a monthly sales mod to add to my admin page. I have tried to install sales_report_v1.3 but cannot seem to get it to work. For someone fluent in php, it will probably be a piece of cake. If anyone could help, I would greatly appreciate it. Thanks. Were are you having trouble? That particular contribution is fairly straight forward and if I recall correctly other than the Reports infobox does not require editing PHP. Give some more specific information and I'm sure someone will be able to help you out. Be well, Tina Quote If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2005 Share Posted December 31, 2005 I don't know where I went wrong. I uploaded the files into the correct folders, and edited the files it told me to edit. However, when I log in to my admin panel, there is nothing new under the reports tab. It is about the most straightforward mod I have ever installed, and it seems like this one is getting the best of me. Quote Link to comment Share on other sites More sharing options...
tina_boots Posted December 31, 2005 Share Posted December 31, 2005 I don't know where I went wrong. I uploaded the files into the correct folders, and edited the files it told me to edit. However, when I log in to my admin panel, there is nothing new under the reports tab. It is about the most straightforward mod I have ever installed, and it seems like this one is getting the best of me. Did you add the required code to your admin/includes/boxes file? If so post the code and perhaps we can see where you went wrong. Tina Quote If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. Link to comment Share on other sites More sharing options...
Guest Posted January 1, 2006 Share Posted January 1, 2006 Here is the code from my reports.php <?php /* $Id: reports.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ ?> <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_REPORTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')); if ($selected_box == 'reports') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_SALES_REPORT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_SALES_REPORT . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //--> I have gotten it inserted into the box for the admin panel, however, when it is clicked on, it now gives me a 404 error saying "The requested URL /admin/FILENAME_STATS_SALES_REPORT was not found on this server." Quote Link to comment Share on other sites More sharing options...
tina_boots Posted January 1, 2006 Share Posted January 1, 2006 Here is the code from my reports.php <?php /* $Id: reports.php,v 1.5 2003/07/09 01:18:53 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ ?> <!-- reports //--> <tr> <td> <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_REPORTS, 'link' => tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')); if ($selected_box == 'reports') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_VIEWED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a><br>' . '<a href="' . tep_href_link(FILENAME_STATS_SALES_REPORT, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_SALES_REPORT . '</a>'); } $box = new box; echo $box->menuBox($heading, $contents); ?> </td> </tr> <!-- reports_eof //--> I have gotten it inserted into the box for the admin panel, however, when it is clicked on, it now gives me a 404 error saying "The requested URL /admin/FILENAME_STATS_SALES_REPORT was not found on this server." You are receiving that error because the system is looking inside your filenames.php file and it does not find a definition for FILENAME_STATS_SALES_REPORT. Make sure you have all the plumbing all hooked up and you should be set. Be well, Tina Quote If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.