source/Application/Model/Delivery.php
public function getIdByName($sTitle)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "SELECT `oxid` FROM `" . getViewName('oxdelivery') . "` WHERE `oxtitle` = " . $oDb->quote($sTitle);
        $sId = $oDb->getOne($sQ);

        return $sId;
    }
public function getIdByName($sTitle)
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sQ = "SELECT `oxid` FROM `" . getViewName('oxdelivery') . "` WHERE `oxtitle` = " . $oDb->quote($sTitle);
        $sId = $oDb->getOne($sQ);

        return $sId;
    }
public function getIdByName ( $ sTitle ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sQ = "SELECT `oxid` FROM `" . getViewName ( 'oxdelivery' ) . "` WHERE `oxtitle` = " . $ oDb -> quote ( $ sTitle ) ; $ sId = $ oDb -> getOne ( $ sQ ) ; return $ sId ; }
returns delivery id

@param string $sTitle delivery name

@return string
returns delivery id