Using the following code, you can obtain the tracking information of a Magento order.
|
1 2 3 4 |
$trackingCollection = $order->getTracksCollection(); $firstItem = $trackingCollection->getFirstItem(); $trackingNumber = $firstItem->getNumber(); ... |
Getting an orders tracking information
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.