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;
}
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hello there, i found this topic, cause I have the same issue, but as I am not a programmer in any meaning, would you please describe more what exactly to do with that code? I managed to find that php file on FTP, but have no idea, if to delete that portion of code, or just letters T, B, M na K...? How the code should look like after modify?straightlight wrote: ↑Wed Dec 06, 2017 11:08 pmIn 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; }
Thanks for any help
OC version. That provided solution is to implement but, now that we use Event Triggers, I would suggest to use it to add this code where you want it.1dodes9 wrote: ↑Fri Apr 22, 2022 7:30 pmHello there, i found this topic, cause I have the same issue, but as I am not a programmer in any meaning, would you please describe more what exactly to do with that code? I managed to find that php file on FTP, but have no idea, if to delete that portion of code, or just letters T, B, M na K...? How the code should look like after modify?straightlight wrote: ↑Wed Dec 06, 2017 11:08 pmIn 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; }
Thanks for any help
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Amazon [Bot] and 40 guests