/** * Returns the parcel service preset id or null if there is neither mapping nor dispatch * * @return integer|null */ protected function getParcelServicePresetId() { // Sub-objects $Dispatch = $this->Order->getDispatch(); // Shipping if ($Dispatch) { try { return PlentymarketsMappingController::getShippingProfileByShopwareID($Dispatch->getId()); } catch (PlentymarketsMappingExceptionNotExistant $E) { } } return null; }