Magento remove “Promo” Item

前端 未结 1 1420
闹比i
闹比i 2021-01-26 09:37

How do I remove the whole \"Promo\" menu item from the Admin menu? It seems to be no separate module.

相关标签:
1条回答
  • 2021-01-26 10:31

    Method 1 - Using local.xml

    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>
    

    Method 2 - Creating a Custom Module

    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>
    

    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 Removing an Item from Magento's Admin Panel Navigation

    0 讨论(0)
提交回复
热议问题