How to fully disable (turn off) Magento module
6 Comments 29th APR 2009 | Posted by Branko Ajzele in Magento

Although the title might sound silly and so easy, there are lot of people having difficulties with this. At first turning Magento module can be easy as going trough System Configuration > Current Configuration Scope > Advanced > Advanced > Disable Module Output. However, be very careful, this action only disables module output as it says. If your module uses, let’s say some Observer functionality to hook into some part of the system and does some overriding then those actions won’t be disabled.
To fully disable module, you need to go to module config file, like /etc/ActiveCodeline_MyModule.xml, and set it’s active parametar to false, like:
< ?xml version="1.0"?> <config> <modules> <activecodeline_mymodule> <active>false</active> <codepool>local</codepool> </activecodeline_mymodule> </modules> </config>
To post code in comments, place your code inside [code] and [/code] tags.



















May 20th, 2009 at 1:36
Also remember to disable System->Cache Management->Configuration cache.
July 21st, 2009 at 17:36
do you have a solution to fully disable a Module just for a specific Website, Store or View? It’s a Problem I’ve been having for a while. An just disabling the output doesn’t do the trick.
October 27th, 2009 at 8:15
hi,
for method containing observer tasks, I covered it with this condition:
if(!Mage::getStoreConfigFlag(‘myCompany/modulename’)) {
//codes here
}
what this condition does is, returns status of the module as its disabled in admin or not.
If its disable then my codes won’t get executed so I archive total disabled status of my module.
November 18th, 2009 at 13:22
What about disabling core modules? E.g. how can I disable Google Base module from my Admin?
November 24th, 2009 at 14:56
@Timo, did you finally fix your problem? I have the same and i don’t know how to do it
March 24th, 2010 at 10:44
Hi – I have made a modification to the admin head.phtml (on a separate theme) which is controlled by a small module that sets the theme as active when enabled. the problem is that it keeps showing even after the module output is set to disabled. Obviously I don’t want anyone to have to set false (like you mentioned here) – as It’s a bit of an inconvenient to the end user. Could anyone share some knowledge on how to fix this?