source/Application/Model/User.php
public function getUserCountryId($sCountry = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "select oxid from " . getviewName("oxcountry") . " where oxactive = '1' and oxisoalpha2 = " . $oDb->quote($sCountry) . " ";
        $sCountryId = $oDb->getOne($sQ);

        return $sCountryId;
    }
public function getUserCountryId($sCountry = null)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "select oxid from " . getviewName("oxcountry") . " where oxactive = '1' and oxisoalpha2 = " . $oDb->quote($sCountry) . " ";
        $sCountryId = $oDb->getOne($sQ);

        return $sCountryId;
    }
public function getUserCountryId ( $ sCountry = null ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sQ = "select oxid from " . getviewName ( "oxcountry" ) . " where oxactive = '1' and oxisoalpha2 = " . $ oDb -> quote ( $ sCountry ) . " " ; $ sCountryId = $ oDb -> getOne ( $ sQ ) ; return $ sCountryId ; }
Returns user countryid according to passed name

@param string $sCountry country

@return string
Returns user countryid according to passed name