Post by Umz » Mon Dec 28, 2015 8:58 pm

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.

Attachments

Dashboard.png

Dashboard Screenshot showing the incorrect numbers. - Dashboard.png (93.47 KiB) Viewed 687 times


Umz
Newbie

Posts

Joined
Mon Dec 28, 2015 8:47 pm

Post by jimmyphong » Tue Dec 29, 2015 1:09 am

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;

News CMS || Plus SEO || Live Price change with Option Select


Active Member

Posts

Joined
Sat Aug 13, 2011 2:48 am


Post by Umz » Wed Jan 06, 2016 7:15 am

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

Umz
Newbie

Posts

Joined
Mon Dec 28, 2015 8:47 pm
Who is online

Users browsing this forum: No registered users and 279 guests