From fa27a134ce0fc8d768792857512a12da5123e387 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Tue, 16 Jan 2024 15:18:22 +0100 Subject: [PATCH] MOL-1196: add shipping method for tracking url --- src/Service/OrderDeliveryService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/OrderDeliveryService.php b/src/Service/OrderDeliveryService.php index fe74691f8..6c877f331 100644 --- a/src/Service/OrderDeliveryService.php +++ b/src/Service/OrderDeliveryService.php @@ -27,7 +27,7 @@ public function getDelivery(string $orderDeliveryId, Context $context): ?OrderDe { $criteria = new Criteria([$orderDeliveryId]); $criteria->addAssociation('order.transactions.paymentMethod'); - $criteria->addAssociation('order.deliveries'); + $criteria->addAssociation('order.deliveries.shippingMethod'); $criteria->addAssociation('shippingMethod'); $result = $this->orderDeliveryRepository->search($criteria, $context);