如何从管理菜单中删除整个“促销”菜单项? 它似乎不是一个单独的模块。
答案 0 :(得分:2)
方法1 - 使用local.xml
打开/app/etc/local.xml并在
下面添加'adminhtml'标记<config>
<global>
.....
</global>
<admin>
....
</admin>
<adminhtml>
<menu>
<promo translate="title" module="promo">
<depends><module>HideMe</module></depends>
</promo>
</menu>
</adminhtml>
</config>
方法2 - 创建自定义模块
创建/app/code/local/MagePal/RemovePromoMenu/etc/config.xml
<config>
<modules>
<MagePal_RemovePromoMenu>
<version>0.9.5</version>
</MagePal_RemovePromoMenu>
</modules
<adminhtml>
<menu>
<promo translate="title" module="promo">
<disabled>1</disabled>
</promo>
</menu>
</adminhtml>
</config>
创建/app/etc/modules/MagePal_RemovePromoMenu.xml
<?xml version="1.0"?>
<config>
<modules>
<MagePal_RemovePromoMenu>
<active>true</active>
<codePool>local</codePool>
</MagePal_RemovePromoMenu>
</modules>
</config>
@dsueiro Removing an Item from Magento's Admin Panel Navigation