Post by philodance » Wed Mar 06, 2019 11:06 am

in which file is the calculation of the total ?
which line do i have to change for the total to be rounded?

New member

Posts

Joined
Thu Jun 07, 2018 5:25 pm

Post by paulfeakins » Wed Mar 06, 2019 5:29 pm

Look in /catalog/model/checkout/order.php

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by philodance » Thu Mar 07, 2019 6:21 am

i tried to round() here:
'comment' => $order_query->row['comment'],
'total' => $order_query->row['total'],
'order_status_id' => $order_query->row['order_status_id'],

...and here twice:
if (isset($data['totals'])) {
foreach ($data['totals'] as $total) {

it doesnt work. where exactly is the total calculated? the total is also viewable on top right button, so i'm not sure if order.php is the right file...

New member

Posts

Joined
Thu Jun 07, 2018 5:25 pm

Post by paulfeakins » Thu Mar 07, 2019 6:18 pm

philodance wrote:
Thu Mar 07, 2019 6:21 am
so i'm not sure if order.php is the right file...
Possibly not, see here:
viewtopic.php?t=192112

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by philodance » Mon Mar 11, 2019 5:06 pm

Thank you!

New member

Posts

Joined
Thu Jun 07, 2018 5:25 pm
Who is online

Users browsing this forum: No registered users and 23 guests