your going to want to edit admin/invoice.php. The bit that you are interested in is :
Code:
<?php
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";
}
?>
It loops through all the order totals and prints them out. If you want to exclude one of them then something like:
Code:
<?php
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
if($order->totals[$i]['title'] != 'Title to Exclude')
{
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";
}
}
?>
You'll have to change where it says 'Title to Exclude' to the title of the order total you need to exclude.
I would say though that it is better to just change the titles to something customer friendly so that they know they are getting discounts.
And having written this post I realise that that will make the totals not add up. You may just want to change the title itself rather than exlude the whole row? In which case you'd use the same technique but put it around the title rather than the whole thing.
Bookmarks