I want to hide the line "Subtotal" in Magento /checkout/onepage/ and show only the "grand total" line.
How开发者_运维知识库 can I do that ?
Thanks a lot
I just changed the file located in: app/design/frontend/base/default/template/checkout/onepage/review/totals.phtml to:
<?php if ($this->getTotals()): ?>
<tfoot>
<?php $_colspan = $this->helper('tax')->displayCartBothPrices() ? 5 : 3; ?>
<?php //echo $this->renderTotals(null, $_colspan); ?>
<?php echo $this->renderTotals('footer', $_colspan); ?>
<?php if ($this->needDisplayBaseGrandtotal()):?>
<tr>
<td class="a-right" colspan="<?php echo $_colspan; ?>">
<small><?php echo $this->helper('sales')->__('Your credit card will be charged for') ?></small>
</td>
<td class="a-right">
<small><?php echo $this->displayBaseGrandtotal() ?></small>
</td>
</tr>
<?php endif?>
Your path may be different if you use a custome theme or running on versions older than 1.5.X.X (1.4 uses default/default instead of base/default as far as i remember).
Also note that i only commented out the line echo $this->renderTotals(null, $_colspan); and you may have to do it different, acording to your display tax rules. but anyway, that is the file showing the totals..
精彩评论