Magento Code Pool


Magento has three different codepools:

  • Community
  • Core
  • Local

Core pool

This folder stores all the code that makes Magento so powerful, flexible and lovely. The chief rule of Magento development is that you should never make any changes in it. In other words, this folder belongs to Magento core developers only and if you are going to edit anything in this pool, their evil spirit could punish you even through the display.

Community pool

This folder belongs entirely to community developers. This is the right place for hundreds of 3rd party extensions, both free and paid, that can be found at MagentoConnect or available on extensions development store. So basically, if you have installed any extension, it must be in app/code/community/ only.

Local pool

If you have your own Magento-based store and want to make everything by yourself or you are a Magento developer and have a purpose to change the logic somehow, local pool is the place where everything should be done. If you want to override Magento extensions, blocks or methods, copy the necessary folders from the Core pool and do whatever you are inclined to do. Apply the same rule for custom extensions that are created specifically for the website – all code should be in local pool.

Step of Generate Localpool structure

  • generate folder-> local at app\code
  • copy code on core->mage->page->etc folder to local->Page
  • copy mage->core-> functions.php file and pest into local->Mage->Core->functions.php

Your Local pool file structure

    • app/code/local
    • local/Mage/Core/functions.php
    • local/Page/etc/config.xml,system.xml

then go Finally

app/etc/modules/Mage_All.xml

Find

<Mage_Page>
<active>true</active>
<codePool>core</codePool> //replace core to local
<depends>
<Mage_Core/>
</depends>
</Mage_Page>

Leave a comment