Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This actually should be quite easy to do. Just look at the <code>app/design/adminhtml/default/default/layout/sales.xml</code> layout file. You can find there the <code>&lt;adminhtml_sales_order_view&gt;</code> node, which defines all blocks used on order's view page.</p> <p>In order to add a new tab, you would need to put another <code>&lt;action</code>> declaration in the file. Currently tabs are defined like this (Magento EE 1.11):</p> <pre><code> &lt;adminhtml_sales_order_view> (...) &lt;reference name="left"> &lt;block type="adminhtml/sales_order_view_tabs" name="sales_order_tabs"> &lt;action method="addTab">&lt;name>order_info&lt;/name>&lt;block>order_tab_info&lt;/block>&lt;/action> &lt;action method="addTab">&lt;name>order_invoices&lt;/name>&lt;block>adminhtml/sales_order_view_tab_invoices&lt;/block>&lt;/action> &lt;action method="addTab">&lt;name>order_creditmemos&lt;/name>&lt;block>adminhtml/sales_order_view_tab_creditmemos&lt;/block>&lt;/action> &lt;action method="addTab">&lt;name>order_shipments&lt;/name>&lt;block>adminhtml/sales_order_view_tab_shipments&lt;/block>&lt;/action> &lt;action method="addTab">&lt;name>order_history&lt;/name>&lt;block>adminhtml/sales_order_view_tab_history&lt;/block>&lt;/action> &lt;action method="addTab">&lt;name>order_transactions&lt;/name>&lt;block>adminhtml/sales_order_view_tab_transactions&lt;/block>&lt;/action> &lt;/block> &lt;/reference> &lt;/adminhtml_sales_order_view> </code></pre> <p>Be aware, <strong>do not change core templates!</strong> </p> <p>In this case you should create new module or alter existing one in <strong>local</strong> code pool. Define a layout updates in <code>config.xml</code> and then create new layout file in adminhtml default theme, for example:</p> <p><code>app/design/adminhtml/default/default/layout/CUSTOM_VENDOR/sales.xml</code>:</p> <pre><code> &lt;adminhtml_sales_order_view> &lt;reference name="sales_order_tabs"> &lt;action method="addTab">&lt;name>TAB_NAME&lt;/name>&lt;block>CUSTOM_BLOCK&lt;/block>&lt;/action> &lt;/reference> &lt;/adminhtml_sales_order_view> </code></pre> <p>Then you just need to create new block and a template.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload