source/Application/Model/User.php
public function isTermsAccepted()
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
        $sUserId = $oDb->quote($this->getId());

        return (bool) $oDb->getOne("select 1 from oxacceptedterms where oxuserid={$sUserId} and oxshopid='{$sShopId}'");
    }
public function isTermsAccepted()
    {
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();
        $sShopId = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId();
        $sUserId = $oDb->quote($this->getId());

        return (bool) $oDb->getOne("select 1 from oxacceptedterms where oxuserid={$sUserId} and oxshopid='{$sShopId}'");
    }
public function isTermsAccepted ( ) { $ oDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) ; $ sShopId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ; $ sUserId = $ oDb -> quote ( $ this -> getId ( ) ) ; return ( bool ) $ oDb -> getOne ( "select 1 from oxacceptedterms where oxuserid={$sUserId} and oxshopid='{$sShopId}'" ) ; }
Checks if user accepted latest shopping terms and conditions version

@return bool
Checks if user accepted latest shopping terms and conditions version