Marty Wallace
Marty Wallace

Reputation: 35734

Disable core magento module from within modules config.xml

Is it possible in Magento to disable a core module completely (not just module output) from in a custom modules config.xml?

If so how?

Upvotes: 2

Views: 777

Answers (2)

Oscprofessionals
Oscprofessionals

Reputation: 2174

Few modules can be disabled but not all. e.g Mage Core should not be disabled.

Also while disabling any module check if any other module depends on this module.As modules that do depend will also get disabled.

e.g in Mage_Module.xml

<Mage_Customer>
    <active>true</active>
    <codePool>core</codePool>
    <depends>
        <Mage_Eav/>
        <Mage_Dataflow/>
        <Mage_Directory/>
    </depends>
</Mage_Customer>

change this to

<Mage_Customer>
    <active>flase</active>
    <codePool>core</codePool>
    <depends>
        <Mage_Eav/>
        <Mage_Dataflow/>
        <Mage_Directory/>
    </depends>
</Mage_Customer>

will disable Customer Module.

Upvotes: 0

dagfr
dagfr

Reputation: 2384

Under /app/etc/modules you have a Mage_Module.xml file In this file you have a enabled node with true, set it to false ;)

That's it

Upvotes: 1

Related Questions