Magento get the name of the order delivery method

Hi, can someone tell me how can I get the name of the shipping method after a successful order?

That's what i have

$iOrderId = Mage::getSingleton('checkout/session')->getLastRealOrderId(); $oOrder = Mage::getModel('sales/order')->loadByIncrementId($iOrderId); echo $oOrder->getShippingMethod(); 

but how can I get this shipping method name?

+5
source share
4 answers
 $oOrder->getShippingDescription(); 
+18
source
 $order = Mage::getModel('sales/order')->loadByIncrementId($iOrderId); $order->getShippingDescription(); 

or

 $shipping = $order->getShippingAddress()->getShippingMethod(); echo $shipping->getData('title'); 
+3
source

This worked for me when searching for a custom name:

 Mage::getModel('sales/order')->loadByIncrementId($orderId)->getTracksCollection()->getFirstItem()->getTitle(); 
+1
source
 $order->getShippingDescription(); // returns Shipping Method Title 
0
source

All Articles