Model/User.php
protected function getShopIdQueryPart()
    {
        $db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        return  " AND `oxshopid` = " . $db->quote(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopId());
    }
protected function getShopIdQueryPart()
    {
        $db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        return  " AND `oxshopid` = " . $db->quote(\OxidEsales\Eshop\Core\Registry::getConfig()->getShopId());
    }
protected function getShopIdQueryPart ( ) { $ db = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; return " AND `oxshopid` = " . $ db -> quote ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ) ; }
Create query part for selecting by shopid.

@return string
Create query part for selecting by shopid .