O'Reilly logo

Getting Started with Magento Extension Development by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Registering your extension

The following are the steps for registering your extension so that Magento can see it:

  1. Prior to writing any real code, we first decide on a name for our extension. We will call it Foggyline_Cargo, and it will be placed under the community codePool.
  2. Once we settle on a name, we go ahead and define an extension registration file, app/etc/modules/Foggyline_Cargo.xml, with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <config>
        <modules>
            <Foggyline_Cargo>
                <active>true</active>
                <codePool>community</codePool>
                <depends>
                    <Mage_Shipping/>
                </depends>
            </Foggyline_Cargo>
        </modules>
    </config>

    Tip

    With the depends tag, Magento offers you the ability to load another extension before yours, as it establishes a load order (or ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required