source/Application/Component/Widget/ArticleBox.php
public function getProduct()
    {
        if (is_null($this->_oArticle)) {
            if ($this->getViewParameter('_object')) {
                $oArticle = $this->getViewParameter('_object');
            } else {
                $sAddDynParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getTopActiveView()->getAddUrlParams();

                $sAddDynParams = $this->updateDynamicParameters($sAddDynParams);

                $oArticle = $this->_getArticleById($this->getViewParameter('anid'));
                $this->_addDynParamsToLink($sAddDynParams, $oArticle);
            }

            $this->setProduct($oArticle);
        }

        return $this->_oArticle;
    }
public function getProduct()
    {
        if (is_null($this->_oArticle)) {
            if ($this->getViewParameter('_object')) {
                $oArticle = $this->getViewParameter('_object');
            } else {
                $sAddDynParams = \OxidEsales\Eshop\Core\Registry::getConfig()->getTopActiveView()->getAddUrlParams();

                $sAddDynParams = $this->updateDynamicParameters($sAddDynParams);

                $oArticle = $this->_getArticleById($this->getViewParameter('anid'));
                $this->_addDynParamsToLink($sAddDynParams, $oArticle);
            }

            $this->setProduct($oArticle);
        }

        return $this->_oArticle;
    }
public function getProduct ( ) { if ( is_null ( $ this -> _oArticle ) ) { if ( $ this -> getViewParameter ( '_object' ) ) { $ oArticle = $ this -> getViewParameter ( '_object' ) ; } else { $ sAddDynParams = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getTopActiveView ( ) -> getAddUrlParams ( ) ; $ sAddDynParams = $ this -> updateDynamicParameters ( $ sAddDynParams ) ; $ oArticle = $ this -> _getArticleById ( $ this -> getViewParameter ( 'anid' ) ) ; $ this -> _addDynParamsToLink ( $ sAddDynParams , $ oArticle ) ; } $ this -> setProduct ( $ oArticle ) ; } return $ this -> _oArticle ; }
Get product article

@return \OxidEsales\Eshop\Application\Model\Article
Get product article