Hot answers tagged

1

Try this, $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Model\Order')->load($orderid); $tracksCollection = $order->getTracksCollection(); foreach ($tracksCollection->getItems() as $track) { $trackNumbers[] = $track->getTrackNumber(); } The problem seems you're not ...


Only top voted, non community-wiki answers of a minimum length are eligible