I am trying to create a new block in my admin panel "Sales->Order->View" Information tab.

In my extension's block folder i have a folder named Adminhtml in this i have file named : Company.php

class Namespace_Modulename_Block_Adminhtml_Company extends Mage_Adminhtml_Block_Sales_Order_Abstract

In my extension module i have placed this code in config.xml under etc folder


then i have my adminhtml layout file as :

<?xml version="1.0"?>
  <layout version="0.1.0">
    <reference name="order_info">
        <block type="modulename/adminhtml_company" name="modulename" template="company.phtml" />

But nothing happened yet,

Thanks in advance,


1 Answer 1


Go to template/sales/order/view/info.phtml and add:

<?php echo $this->getChildHtml('modulename');?>

in the place where you want your block to be displayed. The point here is that only blocks of type core/text_list (or derivates) will list all their child blocks html. The other blocks need to ouput them using getChildHtml

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.