
Originally Posted by
a02l1zz
Hi Lat9,
Last night I upgraded to 1.5.6c from 1.3.9h, after a number of issues with robots creating new accounts and sending SPAM to the emails used in the account creations. The upgrade went well, and I was able to add the reCAPTCHA plugin and that has solved that unwanted activity.
Anyhow, I have used the Sales Report tool on 1.3.9h since 2010. After the upgrade, the tool went away,even though the the files were still there. I decided to move to the latest version, and copied over and replaced the existing files, however, the Sales Report isn't showing in the Reports Section of the Menu Bar.
Looking at the previous threads here, I see that there was some sort of small glitch, that needs to be addressed, but I am trying to figure out what exactly I need to do in the mean time to get the reporting tool to show up.
Is it just a simple matter of adding the a page_key named stats_sales_report to the admin_pages table to resolve the issue?
James
James, you can replace the contents of /YOUR_ADMIN/includes/functions/extra_functions/sales_report.php with the following contents to correct the issue. That's the version in the forthcoming v3.3.3 of the Sales Report:
Code:
<?php
/**
* SALES REPORT 3.3.3
*
* @author Frank Koehl (PM: BlindSide)
* @author Conor Kerr <[email protected]>
* @updated by stellarweb to work with version 1.5.0 02-29-12
* @updated by lat9, supporting zc1.5.5/1/5.6, 2019-11-02
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License V2.0
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// -----
// Bail the required function isn't loaded, e.g. if a currency-cron is running.
//
if (!function_exists('zen_page_key_exists')) {
return;
}
// -----
// If the report's page-key entry doesn't net exist, add it.
//
if (!zen_page_key_exists('stats_sales_report')) {
zen_register_admin_page('stats_sales_report', 'BOX_REPORTS_SALES_REPORT', 'FILENAME_STATS_SALES_REPORT', '', 'reports', 'Y');
}
Bookmarks