Magento删除“促销"物品 [英] Magento remove "Promo" Item
本文介绍了Magento删除“促销"物品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从管理菜单中删除整个促销"菜单项? 似乎没有单独的模块.
How do I remove the whole "Promo" menu item from the Admin menu? It seems to be no separate module.
推荐答案
方法1 -使用local.xml
Method 1 - Using local.xml
打开/app/etc/local.xml并在下面添加"adminhtml"标记
Open /app/etc/local.xml and add the 'adminhtml' tag below
<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
Create /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
Create /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 从Magento的管理面板导航中删除项目
@dsueiro Removing an Item from Magento's Admin Panel Navigation
这篇关于Magento删除“促销"物品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文