Skip to content

Commit

Permalink
Fix json not valid error
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Feb 4, 2025
1 parent 11dc203 commit b630647
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Converter/CommonOrderConverterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,13 @@ private function createOrderLineFromOrderItem(OrderInterface $order, OrderItemIn

$productIdentifiers = null;
if ($product !== null) {
$productIdentifiers = new ProductIdentifiers(
null,
$this->getCategoryPath($product),
);
$categoryPath = $this->getCategoryPath($product);
if ($categoryPath !== null) {
$productIdentifiers = new ProductIdentifiers(
null,
$categoryPath,
);
}
}
$taxRate = $this->getOrderTaxRate($order);
$totalAmount = $orderItem->getTotal();
Expand Down

0 comments on commit b630647

Please sign in to comment.