4

I want to append content in block using XML file. Please check below image

enter image description here

I have added below code but it is overwriting content. (I want to append).

<reference name="order_items">
      <action method="addColumnRender">
         <column>name</column>
         <block>adminhtml/sales_items_column_name</block>
         <template>sales/items/column/name.phtml</template>
      </action> 
</reference> 

I have checked core file there are creating block programmatically.

Jaydeep Pandya
  • 825
  • 1
  • 10
  • 25
Chetan Khandla
  • 537
  • 5
  • 20
  • I have read this can you let me know What will be change in my case? I have tried code of http://stackoverflow.com/questions/14484955/magento-xml-using-before-after-to-place-blocks-hardly-ever-works link but it is now working – Chetan Khandla Jan 06 '17 at 08:51

1 Answers1

3

As I know you can try this way:

<adminhtml_sales_order_view>
<reference name="order_items">
    <block type="core/template" name="test-1" template="test/template.phtml" after="sales_order_edit"/>
    <block type="core/template" name="test-2" template="test/template.phtml" before="sales_order_edit"/>
</reference>

Or in template file you can place your block everywhere you want:

app\design\adminhtml\default\default\template\sales\order\view\tab\info.phtml
Jaydeep Pandya
  • 825
  • 1
  • 10
  • 25