Skip to content

Commit

Permalink
POSTNL-149 - Latest magento support as it changes orderId to order
Browse files Browse the repository at this point in the history
  • Loading branch information
Anatol Alfer committed Jun 7, 2024
1 parent fd51539 commit e8af207
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 e8af207

Please sign in to comment.