How to fully disable (turn off) Magento module

6 Comments 29th APR 2009 | Posted by Branko Ajzele in Magento

How to fully disable (turn off) Magento module

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>

If you like what you read, please share it.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Reddit
  • Technorati
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Netvibes
  • NewsVine
  • Sphinn
  • Tumblr
  • Posterous

To post code in comments, place your code inside [code] and [/code] tags.

There are 6 comments (Add Yours +)

  • Also remember to disable System->Cache Management->Configuration cache.

  • 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.

  • 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.

  • What about disabling core modules? E.g. how can I disable Google Base module from my Admin?

  • @Timo, did you finally fix your problem? I have the same and i don’t know how to do it

  • 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?

Leave a Comment

Please wrap all source codes with [code][/code] tags.
Magento Design and Development | Magento SEO | iPhone Application Development Web Application Development with ZEND | WordPress Ecommerce | WordPress development
Sitemap

Inchoo - webappsolutions | 2009