Magento Extension Configuration

Magento Extension Configuration
Share: Share on Facebook1Share on LinkedIn4Tweet about this on Twitter0Share on Google+1Share on Reddit0Buffer this pageDigg thisEmail this to someoneFlattr the authorShare on StumbleUpon0Share on TumblrPin on Pinterest0Print this page

Magento is a powerful open source eCommerce solutions.Let’s move to the one step ahead in Magento article series.In this blog post, we will see how to create basic admin forms when you want to create your own new extension into magento

Here, I am giving an overview of how to write an extension in magento. At the time of instantiating, magento system reads all the Xmls inside the folder /app/etc/modules/ to get the list of all active modules and their corresponding code repository.

So, very first step of creating a magento extension is to declare the module and its core repository means the repository of the module, in magento it’s called as a codepool.

If you open /app/code, you can see 3 cood pool

  • core
  • community
  • local

codepool

The core cood pool is used for all system modules of magento. The community codepool is for all extensions developed by partners of magento and local is the codepool dedicated for us as a developer to write own customized code.

Here, I am going to explain to create module into community code pool but using same method,you can create your extension into the local folder too.

Module Declaration

Folder structure into the community folder will be like

  • Community
  •   SpaceName
  •     NewModule

Create an xml file app/etc/modules/PaymentMethod.xml and write below code. Here I have used same name for SpaceName and ModuleName,but you can use any name you prefer.

The naming convensation related to the folder structure Magento expects. In most cases, you can read the underscore (_) as contains folder.So for extension, we need to create a folder Space and subfolder Module.

Congratulations, you have written your first extension. You can check that it is working by going into the Magento admin panel > Configuration > Advanced and you will see NameSpace_ModuleName listed under Disable modules output. :)

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Share: Share on Facebook1Share on LinkedIn4Tweet about this on Twitter0Share on Google+1Share on Reddit0Buffer this pageDigg thisEmail this to someoneFlattr the authorShare on StumbleUpon0Share on TumblrPin on Pinterest0Print this page

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

Most Popular Posts

Post via e-mail in WordPress

Posted on 3 years ago

Bhumi

Mysql String Function FIND_IN_SET( )

Posted on 3 years ago

Bhumi

GoTo statement in PHP

Posted on 3 years ago

Bhumi

Table layout using DIV tags

Posted on 2 years ago

Bhumi

New Features in MySQL 5.6

Posted on 3 years ago

Bhumi