Contact Us 1.708.547.8500
Here is the first part of Magento Create Module (Basic). As we all know, Mage is full of resources and rich features. Also, it’s one of the best open source platforms. So, it’s hardly possible that you might not have an extension (module) for your store. But if still the problem arises then it’s better to learn to edit and modify the existing ones. Or How to create a basic module from scratch.
Read our articles on different Mage topics by following us. However our hosting provides 24×7 technical and web development support to our honorable clients. Also you can directly contact our teams for any purpose 24×7. Our Pro plan offers 24/7 basic phone support for our clients. Now you can enjoy upto 25% off on first month of your hosting bill.
Learn more about our special offers!
Tanzia Farin Chy for Aspiration Hosting
Hello world!! – Magento Create Module
Here in this series article we will gradually learn to create a basic module. So, we design a module which can keep a log every time a product has been saved. In coding, we call it “Hello world” standard means very basic. However at the end we will learn the followings and can enable us to create or edit our modules. Hence the article includes, the “app/code” directories, structure of module, event observation and logging etc.
Magento Create Module – Getting ready
First we need to disable the “Cache” system. To do disable Cache, log in to the Mage Admin Panel. Under the “System” go and find “Cache Management”. Next “Select all” and from “Actions” disable the Cache. Now click “Submit” button to save the settings.
Magento Create Module – Directories
As we’re learning to develop Mage Modules. So, let’s begin the basic structure. To begin with we must have knowledge about Directory (DIR). As under “app/code” DIR we’ll find all core files and codes of Mage. Further under the app/code/core we’ll get the operation codes of products, payments and categories etc. Hence the modules by 3rd party developers can be found under the “theapp/code/community directory” path. Next the structure has an empty DIR under the path”theapp/code/local directory”. So, the empty DIR is the place to work on for us. Let’s start!!!
Currently Viewing Part 1 | Go to Part 2