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

Dissecting the existing shipping method

Magento defines its shipping methods, also called carriers, under the config/default/carriers XML element.

If you take a look at app/code/core/Mage/Shipping/etc/config.xml, you can see several carriers' definition as the one for the Flat Rate shipping method, as the following code:

<?xml version="1.0"?> <config> <!-- ... --> <default> <carriers> <flatrate> <active>1</active> <sallowspecific>0</sallowspecific> <model>shipping/carrier_flatrate</model> <name>Fixed</name> <price>5.00</price> <title>Flat Rate</title> <type>I</type> <specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg> <handling_type>F</handling_type> ...

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