0

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?

1 Answer 1

0

I worked it out using:

$orderNumber = $rawRequest->getOrderShipment()->getOrder()->getIncrementId();
$orderDate = $rawRequest->getOrderShipment()->getOrder()->getCreatedAt();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.