Skip to main content
2 of 3
edited body
Fra
  • 7k
  • 12
  • 65
  • 99

If you have the $orderItem, you can easily get all the ShipmentItems:

$shipmentItems = Mage::getResourceModel('sales/order_shipment_item_collection')
    ->addFieldToFilter('order_item_id', $orderItem->getId());
foreach ($shipmentItems as $item) {
    $item->getShipment();
}

if this doesn't work, you need to load the shipment based on the $item->getParentId()

Fabian Blechschmidt
  • 35.4k
  • 8
  • 75
  • 182