Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

sales report failure: scale too small


Recommended Posts

  • 3 months later...
  • 4 years later...

This is what I believe the problem to be.....


One of the columns on the graph is considerably bigger than all of the others.




find stats_sales_report.php in admin folder.... then find in the code....


//define variables for graph

if ($report->size > 1) {

$scale_x = ($sum / $report->size) / 4;

$scale_y = $scale_x + 50;

$scale_z = $scale_y / 100;

$scale = round($scale_z) * 100;


Change 50 to a greater number, I changed mine to 100.


It's a quick fix, and really it's a bug that needs rectifying.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...