0

How do i add some text on order totals in this section in picture ? Magento 1

Add text to Order Totals block in Admin > Sales > Order > Reorder >View

enter image description here

1 Answer 1

1

in \app\design\adminhtml\default\default\template\sales\order\view\tab\info.phtml you have <div class="order-totals">. This is the place where order_totals block is rendered.

EDIT
to add row under subtotal:
override : app\design\adminhtml\default\default\template\sales\order\create\totals\subtotal.phtml.
enter image description here enter image description here

10
  • Hello, i did not find "order-totals" in the file that you have mentioned Sep 30, 2020 at 10:14
  • weird... github.com/OpenMage/magento-mirror/blob/magento-1.9/app/design/… at line 105 you should have this div
    – SebastianT
    Sep 30, 2020 at 10:25
  • Sir, this is exactly what i am asking for where are the above picture shows fields coming from this - <div class="order-totals"><?php echo $this->getChildHtml('order_totals') ?></div> ? Sep 30, 2020 at 10:28
  • 1
    $this->getTotal()->getData()['address']->getBaseSubtotal() this will give you base_subtotal, but i am not sure if this is correct way to get this value. But it works :D. Glad i could help you
    – SebastianT
    Sep 30, 2020 at 11:04
  • 1
    Thankyou i will check :) Sep 30, 2020 at 11:04

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.