by Bhumi //Dec 30,2012 // No comment
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
If you open /app/code, you can see
3 cood pool
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.
Folder structure into the community folder will be like
Create an xml file app/etc/modules/PaymentMethod.xml and write below code. Here I have used same name for
ModuleName,but you can use any name you prefer.
<?xml version="1.0" encoding="UTF-8"?>
<!-- declare SpaceName_NewModule module -->
<!-- this is an active module -->
<!-- this module will be located in app/code/community code pool -->
<!-- specify dependencies for correct module loading order -->
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.
On looking at stressed faces of Magento users, it is easy to understand the reason of their stress. The impact of SmartPhone powered virtual era READ MORE
This is the next article of magento series and I am going to cover creation of basic custom payment option in admin panel.In Previous article,we READ MORE
After few days,I am back again with my new quick article release. Today we will continue with Magento article series and i am going to READ MORE
Today I am going to start the series of the articles in Magento.No doubt Magento is a best open source e-commerce platform and whenever you READ MORE
Posted on Mar 2,2012
Posted on Dec 1,2011
Posted on Nov 26,2011
Posted on Jan 18,2013
Posted on Dec 12,2011
Be a Contributor at CreativeDev.Write an article or tutorial to the community and share some of your knowledge!