我用我的模块adminhtml布局XML来添加或删除选项卡(你可以用你的主题的local.xml中,基于这些步骤有点tweakking的)
首先,你需要声明你的模块的config.xml布局更新()像下面这样:
<adminhtml>
<layout>
<updates>
<mymodule>
<file>mymodule.xml</file>
</mymodule>
</updates>
</layout>
</adminhtml>
然后在mymodule.xml,添加以下(在这里,我使用的是管理员才能查看页面句柄)
<adminhtml_sales_order_view>
<reference name="sales_order_tabs">
<action method="removeTab">
<name>order_shipments</name>
</action>
<action method="addTabAfter">
<name>order_shipments_mymodule</name>
<block>mymodule/adminhtml_order_shipments</block>
<after>order_creditmemos</after>
</action>
<action method="addTab">
<name>order_receipts</name>
<block>mymoduled/adminhtml_order_recp</block>
</action>
</reference>
</adminhtml_sales_order_view
希望这有助于! (不要忘了给予好评这个解决方案)
噢噢噢,帮助谢谢 刚刚卸下的应用程序/设计/前端这一行/ [your_package]/[your_theme] /layout/local.xml附加 附加资料 目录/ product_view_attributes 目录/产品/视图/ attributes.phtml –