Friday 30 August 2013

magento get shipping method


$shippingmethods = Mage::getSingleton('shipping/config');
foreach($shippingmethods as $code =>$carrier){
     $shipTitle = Mage::getStoreConfig('carriers/'.$code.'/title');
     $shipName = Mage::getStoreConfig('carriers/'.$code.'/name');
     $shipErrorMsg = Mage::getStoreConfig('carriers/'.$code.'/specificerrmsg');
}

2 comments:

Anonymous said...

Error in your code that $methods in the foreach is wrong it should be $shippingmethods. Any way nice.

Thanks,
Vivek

Buy A2Z said...

updated vivek thanks for putting up this point