To add shipping carrier in magento is quit easy. All we have to declare following code.
extend Mage_Shipping_Model_Carrier_Abstract and
protected $_code = ‘ndslaramax’; This is unique code which will be used my magento to identify the shipping method.
Then create following function
- collectRates // base code with defalt value
- getAllowedMethods //To display at shopping cart page
- isTrackingAvailable // Make it true to list in admin shipping page (optional)
- getTrackingInfo // This will return tracking info if request from front end (optional)
Include the code name in etc/config.xml & etc/system.xml
We are done.