Question

I have a requirement to attach the order ID and order date to the xml request (ShipmentRequest) located in /magento/dhl/model/Carrier.php

Is there a way to retrieve the order ID linked to this shipping request?

Was it helpful?

Solution

I worked it out using:

$orderNumber = $rawRequest->getOrderShipment()->getOrder()->getIncrementId();
$orderDate = $rawRequest->getOrderShipment()->getOrder()->getCreatedAt();
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top