/** * Returns true if this user wishes the delivery on an german island. * @param oxBasket $oBasket * @return bool */ protected function isForB3NIsland(oxBasket $oBasket) { $oUser = $oBasket->getBasketUser(); $sZip = $oUser->oxuser__oxzip->value; if ($oUser->getSelectedAddressId() && ($oAddr = $oUser->getSelectedAddress())) { $sZip = $oAddr->oxaddress__oxzip->value; } // if return $sZip && in_array($sZip, $this->getConfig()->getConfigParam('aB3NGermanIslandZips') ?: array()); }