Zen Cart Logo
Forums / Customization from the Admin / Interesting issue in Sales Report with Graphcs (built in to 1.5.6)

Interesting issue in Sales Report with Graphcs (built in to 1.5.6)

Views: 3,835

Results 1 to 1 of 1
23 Jan 2020, 2:23 AM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,717
Plugin Contributions:
56

Interesting issue in Sales Report with Graphcs (built in to 1.5.6)

If you don't use the Subtotal order module (which you're not required to do), this report won't work.

To fix it, just edit admin/includes/classes/stats_sales_report_graph.php and change 'ot_subtotal' to 'ot_total'. It won't be perfect because now you'll be including taxes and various other things you might not want, but at least it gives you something.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.