Magento 2 order shipment tracking details
-
15-04-2021 - |
문제
How to get tracking information from order shipment in magento 2?
해결책
You can get all tracking details using this code :
$tracksCollection = $order->getTracksCollection();
foreach ($tracksCollection->getItems() as $track) {
echo $track->getTrackNumber(); // Tracking number
// You can get other details here.
}
제휴하지 않습니다 magento.stackexchange