How can i add a new tab in left in sales order view,like now are invoices credit memos,releases etc in magento -


i want add new tab in left in sales->order->view.for have created module not solved problem,it showing error wrong tab configuration,i have search on many links posted in stack overflow,but not yet satisfied. thanks

this should quite easy do. @ app/design/adminhtml/default/default/layout/sales.xml layout file. can find there <adminhtml_sales_order_view> node, defines blocks used on order's view page.

in order add new tab, need put <action> declaration in file. tabs defined (magento ee 1.11):

 <adminhtml_sales_order_view>     (...)     <reference name="left">         <block type="adminhtml/sales_order_view_tabs" name="sales_order_tabs">             <action method="addtab"><name>order_info</name><block>order_tab_info</block></action>             <action method="addtab"><name>order_invoices</name><block>adminhtml/sales_order_view_tab_invoices</block></action>             <action method="addtab"><name>order_creditmemos</name><block>adminhtml/sales_order_view_tab_creditmemos</block></action>             <action method="addtab"><name>order_shipments</name><block>adminhtml/sales_order_view_tab_shipments</block></action>             <action method="addtab"><name>order_history</name><block>adminhtml/sales_order_view_tab_history</block></action>             <action method="addtab"><name>order_transactions</name><block>adminhtml/sales_order_view_tab_transactions</block></action>         </block>     </reference> </adminhtml_sales_order_view> 

be aware, do not change core templates!

in case should create new module or alter existing 1 in local code pool. define layout updates in config.xml , create new layout file in adminhtml default theme, example:

app/design/adminhtml/default/default/layout/custom_vendor/sales.xml:

 <adminhtml_sales_order_view>     <reference name="sales_order_tabs">         <action method="addtab"><name>tab_name</name><block>custom_block</block></action>              </reference> </adminhtml_sales_order_view> 

then need create new block , template.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -