source/Application/Model/Article.php
public function getCustomerAlsoBoughtThisProducts()
    {
        // Performance
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        if (!$myConfig->getConfigParam('bl_perfLoadCustomerWhoBoughtThis')) {
            return;
        }

        // selecting products that fits
        $sQ = $this->_generateSearchStrForCustomerBought();

        $oArticles = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArticles->setSqlLimit(0, $myConfig->getConfigParam('iNrofCustomerWhoArticles'));
        $oArticles->selectString($sQ);
        if ($oArticles->count()) {
            return $oArticles;
        }
    }
public function getCustomerAlsoBoughtThisProducts()
    {
        // Performance
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();
        if (!$myConfig->getConfigParam('bl_perfLoadCustomerWhoBoughtThis')) {
            return;
        }

        // selecting products that fits
        $sQ = $this->_generateSearchStrForCustomerBought();

        $oArticles = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
        $oArticles->setSqlLimit(0, $myConfig->getConfigParam('iNrofCustomerWhoArticles'));
        $oArticles->selectString($sQ);
        if ($oArticles->count()) {
            return $oArticles;
        }
    }
public function getCustomerAlsoBoughtThisProducts ( ) { // Performance $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; if ( ! $ myConfig -> getConfigParam ( 'bl_perfLoadCustomerWhoBoughtThis' ) ) { return ; } // selecting products that fits $ sQ = $ this -> _generateSearchStrForCustomerBought ( ) ; $ oArticles = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oArticles -> setSqlLimit ( 0 , $ myConfig -> getConfigParam ( 'iNrofCustomerWhoArticles' ) ) ; $ oArticles -> selectString ( $ sQ ) ; if ( $ oArticles -> count ( ) ) { return $ oArticles ; } }
Loads and returns articles list, bought by same customer.

@return oxArticleList|null
Loads and returns articles list bought by same customer .