Skip to content

Commit

Permalink
Merge pull request #623 from postnl/feature/POSTNL-149-restapi-shippi…
Browse files Browse the repository at this point in the history
…ng-extension

POSTNL-149 - Latest magento support as it changes orderId to order
  • Loading branch information
DarthFly committed Jun 7, 2024
2 parents 355c859 + e8af207 commit d9f148a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Plugin/Shipment/ShippingBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,15 @@ public function afterSetOrderId(
$this->orderId = (int)$orderId;
return $result;
}

public function afterSetOrder(
SubjectClass $subject,
$result,
$order
) {
if ($order) {
$this->orderId = $order->getId();
}
return $result;
}
}

0 comments on commit d9f148a

Please sign in to comment.