Skip to content

Commit

Permalink
Merge pull request #1204 from plentymarkets/fix/tracking_link
Browse files Browse the repository at this point in the history
Only add tracking url when package number is set
  • Loading branch information
stentrop authored Oct 8, 2024
2 parents d1a21c8 + fd4afb6 commit 7a4cedf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Services/OrderTrackingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ public function getTrackingURLs(Order $order, $lang): array
foreach ($packageNumbers as $packageNo) {
$trackingURLs[] = $this->buildTrackingUrl($order, $trackingURL, $packageNo, $lang);
}
} else {
} elseif(count($packageNumbers)) {
$packageNumber = implode($delimiter, $packageNumbers);

$trackingURLs[] = $this->buildTrackingUrl($order, $trackingURL, $packageNumber, $lang);
}
}
Expand Down Expand Up @@ -136,4 +135,4 @@ private function buildTrackingUrl(Order $order, string $trackingURL, string $pac
$trackingURL
);
}
}
}

0 comments on commit 7a4cedf

Please sign in to comment.