Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sales report2 show a blank ie page, anyone can help me with that?


silver2008

Recommended Posts

Posted

I already install the sales_report2, my OSC version is 2.2-MS2, but the report show a blank ie page when I viewed the report in

 

administration/report/Salesreport2, What's wrong? anyone can help me with that? Many thanks!

 

 

 

 

================================================================================

===

 

download sales_report V2U6

http://www.oscommerce.com/community/contri...rch,sale+report

 

 

 

(1)put the stats_sales_report2.php and sales_report2.php the below location:

 

==>catalog/admin/stats_sales_report2.php

==>catalog/admin/includes/classes/sales_report2.php

==>catalog/admin/induces/languages/english/stats_sales_report2.php

 

 

 

(2)change code from the location: catalog/admin/includes/boxes/reports.php

 

'<a href="' . tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_PRODUCTS_PURCHASED . '</a><br>' .

 

change to===>

 

'<a href="' . tep_href_link(FILENAME_STATS_SALES_REPORT2, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_SALES_REPORT2 . '</a><br>' .

 

 

 

(3)public_html/admin/includes/applicatin_top.php

 

before ?> insert

 

define('FILENAME_STATS_SALES_REPORT2', 'stats_sales_report2.php');

 

 

 

(4)public_html/admin/includes/languages/english.ph

 

before ?> insert

 

define('BOX_REPORTS_SALES_REPORT2', 'SalesReport2');

 

 

-------------------------------------------------------------------------------------------------------------

 

 

the reports.php code as below:

 

 

 

<?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 © 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_SALES_REPORT2, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_SALES_REPORT2 . '</a><br>' .'<a href="' . tep_href_link(FILENAME_STATS_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_REPORTS_ORDERS_TOTAL . '</a>');

}

 

$box = new box;

echo $box->menuBox($heading, $contents);

?>

</td>

</tr>

<!-- reports_eof //-->

Archived

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

×
×
  • Create New...