Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Totals in Admin/invoice.php

Totals in Admin/invoice.php

Locked

Views: 1,100

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Jun 2008, 2:57 AM
#1
jogr avatar

jogr

New Zenner

Join Date:
Jun 2008
Posts:
9
Plugin Contributions:
0

Totals in Admin/invoice.php

Does anyone have an idea how to get the Tax line below the Total line, I think it is in this code.

for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
echo ' <tr>' . "\n" .

' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' .
$order->totals[$i]['title'] . '</td>' . "\n" .

' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' .
$order->totals[$i]['text'] . '</td>' . "\n" .

     '          </tr>' . "\n";
19 Jun 2008, 7:10 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Totals in Admin/invoice.php

If you change your sort orders in Admin->Modules->Order Total and make your Tax option have a higher sort order than your Total, then future orders will show the details in the new sort order.

Otherwise you're going to have to get into some fancy recoding.

19 Jun 2008, 1:53 PM
#3
jogr avatar

jogr

New Zenner

Join Date:
Jun 2008
Posts:
9
Plugin Contributions:
0

Re: Totals in Admin/invoice.php

Thankyou that did the trick.