Post by taran_117 » Wed Dec 06, 2017 11:05 pm

Hi All
I want to see proper number of orders in admin panel dashboard, where as its showing K for 1000 orders. Is there any way to get this done?

Help is really appreciated.

P.S. I am using OC 2.3.0.2 version

Thanks In Advance

New member

Posts

Joined
Sun Apr 29, 2012 9:26 pm

Post by straightlight » Wed Dec 06, 2017 11:08 pm

In admin/controller/extension/dashboard/order.php file, all the abbreviations:

Code: Select all

if ($order_total > 1000000000000) {
			$data['total'] = round($order_total / 1000000000000, 1) . 'T';
		} elseif ($order_total > 1000000000) {
			$data['total'] = round($order_total / 1000000000, 1) . 'B';
		} elseif ($order_total > 1000000) {
			$data['total'] = round($order_total / 1000000, 1) . 'M';
		} elseif ($order_total > 1000) {
			$data['total'] = round($order_total / 1000, 1) . 'K';
		} else {
			$data['total'] = $order_total;
		}

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com contractor officials representative


Administrator

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by taran_117 » Thu Dec 07, 2017 2:05 pm

Hi Straightlight
Thanks for the info. It worked like a charm. You are superhero. O0

New member

Posts

Joined
Sun Apr 29, 2012 9:26 pm
Who is online

Users browsing this forum: No registered users and 61 guests