Order Total Summary Displays within the Store
File: includes/templates/template_default/templates/tpl_modules_order_totals.php
As with any other template file being modified for a store, the template file should copied from the template_default/templates folder to the template folder for the store.
The following lines in this file output the Order Total information:
for ($i=0; $i<$size; $i++) { ?>
<div id="<?php echo str_replace('_', '', $GLOBALS[$class]->code); ?>">
<div class="totalBox larger forward"><?php echo $GLOBALS[$class]->output[$i]['text']; ?></div>
<div class="lineTitle larger forward"><?php echo $GLOBALS[$class]->output[$i]['title']; ?></div>
</div>
<br class="clearBoth" />
<?php } ?>To simplify the output for the shipping info, a check needs to be made against which order total module is currently having its output formatted for display and the desired adjustments made. In this case, a title of “Shipping” is used for the Order Total line if it is the line concerned with outputting the shipping information:
for ($i=0; $i<$size; $i++) { ?>
<div id="<?php echo str_replace('_', '', $GLOBALS[$class]->code); ?>">
<div class="totalBox larger forward"><?php
if ($GLOBALS[$class]->code == 'ot_shipping') {
echo 'Shipping';
} else {
echo $GLOBALS[$class]->output[$i]['text'];
}
?></div>
<div class="lineTitle larger forward"><?php echo $GLOBALS[$class]->output[$i]['title']; ?></div>
</div>
<br class="clearBoth" />
<?php } ?>