Skip to content

Commit c5d2acc

Browse files
committed
chore: display order shipping address if no shipments
1 parent 72eb75d commit c5d2acc

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,15 @@ public function getShipments($order)
507507
}
508508
$shipments[] = $shipment;
509509
}
510-
} else {
511-
if ($orderShippingAddress) {
512-
$shipments[] = array(
513-
'shipping_address' => $this->formatAddress($orderShippingAddress),
514-
);
515-
}
516510
}
517511
}
518512

513+
if (empty($shipments) && $orderShippingAddress) {
514+
$shipments[] = array(
515+
'shipping_address' => $this->formatAddress($orderShippingAddress),
516+
);
517+
}
518+
519519
return $shipments;
520520
}
521521

0 commit comments

Comments
 (0)