Skip to content

Commit e80f306

Browse files
committed
chore: ensure shipments returns an address even if not yet shipped
1 parent 10247cd commit e80f306

File tree

1 file changed

+5
-0
lines changed
  • src/app/code/community/Zendesk/Zendesk/Helper

1 file changed

+5
-0
lines changed

src/app/code/community/Zendesk/Zendesk/Helper/Data.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,11 @@ public function getShipments($order)
539539
'order_status' => $orderStatus,
540540
);
541541
}
542+
} else {
543+
$shippingAddress = $order->getShippingAddress();
544+
$shipments[] = array(
545+
'shipping_address' => $this->formatAddress($shippingAddress),
546+
);
542547
}
543548

544549
return $shipments;

0 commit comments

Comments
 (0)