1

enter image description here

In the cart section of my Magento store i'm looking to modify these totals by adding a column (:) infront of each one.

So its laid out like this:

Subtotal:

Grand Total:

I cant figure out what file requires modification to change these.

1 Answer 1

4

Look into two sections:

app\design\frontend\yourtheme\default\template\tax\checkout\

app\design\frontend\yourtheme\default\template\checkout\total\

Depending on your setup in tax configuration you have to manually add ':' after something like: <?php echo $this->getTotal()->getTitle() ? in: app\design\frontend\yourtheme\default\template\checkout\total\tax.phtml

or something like: <?php echo $this->escapeHtml($this->getTotal()->getTitle()); ?> in: app\design\frontend\youtheme\default\template\checkout\total\default.phtml

So you can edit it into something like this:

<?php echo $this->escapeHtml($this->getTotal()->getTitle()) . ': '; ?>

or:

<?php echo $this->escapeHtml($this->getTotal()->getTitle()); ?>: 

More specificaly, edit app\design\frontend\yourtheme\default\template\tax\checkout\subtotal.phtml (if you dont have one copy from base/default/ theme package)

<td style="<?php echo $this->getStyle() ?>" class="a-right" colspan="<?php echo $this->getColspan(); ?>"> <?php echo $this->getTotal()->getTitle() ?>: </td>

6
  • Didn't work unfortunately :/ I tried editing both
    – Oliver K
    Commented Mar 15, 2015 at 22:32
  • Are you sure you're editing files in your active theme?
    – versedi
    Commented Mar 15, 2015 at 23:13
  • Fantastic. Your latest edit helped. Thanks :)
    – Oliver K
    Commented Mar 16, 2015 at 4:12
  • How would I have magento calculate tax when someone selects "Store Pick Up" as an option? Currently, it isn't calculating any tax for that method. However, If I select UPS it does.. Commented May 6, 2016 at 18:08
  • @ElvaSandoval what's your tax settings based on - Billing Address/Shipping Origin?
    – versedi
    Commented May 10, 2016 at 17:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.