Magento Themes and Magento Extensions

How To Enable Disable Installed Magento Extensions

Share

magento themes club

Magento Extensions are great for enhancing the features of any Magento powered ecommerce stores. Typically these extensions covers those parts of e-commerce which aren’t there in default Magento core. Magento is complete in itself but there are various options which are missing from the core i.e. AJAX cart, Product on Sale, Custom newsletters, Blog, extra fee, Featured product sliders and so on. There is a huge list of features which are required by various Magento powered stores. Unfortunately, not all extensions can be a part of the Magento core otherwise Magento will end up like Oscommerce (a powerhouse where all you needed was a generator). Having too many features will eventually confuse the end users so it’s vital for any open source to keep the configuration aspects optimized. You don’t want to give a month training to use your software do you?

Magento extensions provides specific features customized for a particular need. In recent months many store owners started installing various extensions (the way they were doing for WordPress in the past), that led to their stores getting slower and slower in terms of site speed. The best strategy of using Magento extension would be to install only those extensions which you really need and are coming from trusted Magento extension development stores. Installing too many extensions will surely degrade the Magento powered store’s speed and hence performance.

Enable or Disable Installed Magento Extensions

Magento uses a Namespace_Module.xml under app/etc/Module i.e. (app/etc/module/Namespace_Module.xml) which tells the Magento core to look for a particular extension and use it. This file contains the following information required by Magento core to identify and enable/disable a module (keep in mind that this file doesn’t include Magento extension’s configuration as that file is stored separately under app/code/{local or community}/Namespace/Extension/etc/config.xml):

  • modules – tells Magento that this is a module/extension.
  • Namespace_Module – Name of the Extension (Don’t confuse Namespace with normal namespaces it’s just a coding standard for Magento developers to keep all their extensions under a unified Namespace).
  • active - this block tells that this particular Magento extension should be active (true) or inactive (false)
  • codePool – this tells where the extension code will be found. Typically you will find rest of the extension code either under app/code/local or app/code/community. in XML file it will mention only local or community.

If you want to disable a particular extension all you have to do is to change the active block to false. You can use any ftp program which supports file editing to change the extension status to false. Just open  app/etc/module/Namespace_Module.xml in your favorite editor and change it as shown below:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?>
<!--
/**
 * @category   Magik
 * @package    MagentoMagik_Salepro
 * @author     Ashish Nayyar @ MagentoMagik
 * @license    http://www.magentomagik.com  Open Software License (OSL 3.0)
 */
 -->
<config>
    <modules>
        <Magik_Salepro>
            <active>false</active>
            <codePool>local</codePool>
        </Magik_Salepro>
    </modules>
</config>

Similarly, you can enable the extension again by changing its active block to true.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0"?>
<!--
/**
 * @category   Magik
 * @package    MagentoMagik_Salepro
 * @author     Ashish Nayyar @ MagentoMagik
 * @license    http://www.magentomagik.com  Open Software License (OSL 3.0)
 */
 -->
<config>
    <modules>
        <Magik_Salepro>
            <active>true</active>
            <codePool>local</codePool>
        </Magik_Salepro>
    </modules>
</config>

Some of my customers notified that even after disabling few installed Magento extensions their store didn’t improve on speed. Disabling Magento extension doesn’t necessarily give any boost to store’s speed as there are numerous things which might be effecting your Magento powered stores. Although, i would recommend to delete the unused extensions especially if you are not going to use them for a long time. Clear your cache once to ensure there is nothing saved in cache related to that particular extension.

I would love to hear your thoughts and comments on enabling/disabling a Magento extension. Please leave me a comment and let me know. Subscribe our RSS to receive latest Magento customization and development updates.

Leave a Reply

You must be logged in to post a comment.