Page 1 of 1

Total Sales Number - OC 2.1.0.1

Posted: Mon Dec 28, 2015 8:58 pm
by Umz
Hi All,

Need help for OpenCart 2.1.0.1 installed with a Custom Theme:
http://aviclothing.co.uk/theshop/

Emailed support and they told me it was an OpenCart issue.
Haven't tried anything yet, as I'm unfamiliar with OpenCart and don't want to break anything without having some direction or advice. Thanks for your help, in advance.

The Total Orders is displaying 2 for the 2 testers that items.
The Total Sales is displaying 35.

Orders total to 8.20 and 26.70 (36.90) so the 35 is quite confusing. Anyone know how to fix?

Thanks for the help, Much Appreciated,
Umz.

Re: Total Sales Number - OC 2.1.0.1

Posted: Tue Dec 29, 2015 1:09 am
by jimmyphong
Open file

admin\controller\dashboard\sale.php

check this line (line 37)

Code: Select all

$data['total'] = round($sale_total);
change to

Code: Select all

$data['total'] = round($sale_total, 2);
or view round php document here
http://php.net/manual/en/function.round.php

also you can use not round function like

Code: Select all

$data['total'] = $sale_total;

Re: Total Sales Number - OC 2.1.0.1

Posted: Wed Jan 06, 2016 7:15 am
by Umz
jimmyphong wrote:Open file

admin\controller\dashboard\sale.php

check this line (line 37)

Code: Select all

$data['total'] = round($sale_total);
change to

Code: Select all

$data['total'] = round($sale_total, 2);
or view round php document here
http://php.net/manual/en/function.round.php

also you can use not round function like

Code: Select all

$data['total'] = $sale_total;
Thank You.
This is the perfect solution ;D