diff --git a/src/Service/API/ShipmentApiService.php b/src/Service/API/ShipmentApiService.php index 368b4683..8152e948 100644 --- a/src/Service/API/ShipmentApiService.php +++ b/src/Service/API/ShipmentApiService.php @@ -71,6 +71,7 @@ public function createShipment($addressId, ShipmentData $shipmentData, $orderId) $dpdProduct = new DPDProduct($shipmentData->getProduct()); $parcelType = $dpdProduct->getProductReference(); $country = Country::getIsoById($address->id_country); + $postCode = $address->postcode; $hasAddressFields = (bool) !$postCode || !$firstName || !$address->city || !$country; // IF prestashop allows, we take selected parcel terminal address in case information is missing in checkout address in specific cases.