Hi can anybody tell me how can i get after successfully order is placed shipping method title?
Here is 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 title?
$oOrder->getShippingDescription();
$order = Mage::getModel('sales/order')->loadByIncrementId($iOrderId);
$order->getShippingDescription();
Or
$shipping = $order->getShippingAddress()->getShippingMethod();
echo $shipping->getData('title');
This worked for me when looking for the custom title:
Mage::getModel('sales/order')->loadByIncrementId($orderId)->getTracksCollection()->getFirstItem()->getTitle();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With