$currentCustomerGroups; } protected static function isInWhitelistForGeolocation() { $allowed = false; $userIp = Tools::getRemoteAddr(); $ips = explode(';', Configuration::get('PS_GEOLOCATION_WHITELIST')); if (is_array($ips) AND sizeof($ips)) foreach ($ips AS $ip) if (!empty($ip) AND strpos($userIp, $ip) === 0) $allowed = true; return $allowed; } }