Skip to main content

Posts

Showing posts from August 4, 2013

Creating A Magento Module

A lot of community extensions (or modules) are available for the feature-rich open-source e-commerce solution  Magento , but what if they don’t quite work as you want them to? What if you could understand the structure of a Magento module a little better, to the point that you could modify it to suit your needs or, better yet, write your own module from scratch? In this tutorial, we will introduce the coding of Magento in the form of a “Hello World”-style module. The goal of the module will be simply to write some information to a log file every time a product is saved. This very basic module will allow us to cover a number of interesting topics, including: The  app/code  directories, The structure and creation of a Magento module, Event observers, Logging. Before We Begin This tutorial assumes that you already have an installation of Magento up and running, either locally or on a development server, that you can add new files to. The version of Magento th...