source/Application/Model/Country.php
public function getIdByCode($sCode)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        return $oDb->getOne("select oxid from oxcountry where oxisoalpha2 = " . $oDb->quote($sCode));
    }
public function getIdByCode($sCode)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        return $oDb->getOne("select oxid from oxcountry where oxisoalpha2 = " . $oDb->quote($sCode));
    }
public function getIdByCode ( $ sCode ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; return $ oDb -> getOne ( "select oxid from oxcountry where oxisoalpha2 = " . $ oDb -> quote ( $ sCode ) ) ; }
Returns country id by code

@param string $sCode country code

@return string
Returns country id by code