source/Application/Model/Article.php
public function getPictureUrl($iIndex = 1)
    {
        if ($iIndex) {
            $sImgName = false;
            if (!$this->_isFieldEmpty("oxarticles__oxpic" . $iIndex)) {
                $sImgName = basename($this->{"oxarticles__oxpic$iIndex"}->value);
            }

            $sSize = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aDetailImageSizes');

            return \OxidEsales\Eshop\Core\Registry::getPictureHandler()
                ->getProductPicUrl("product/{$iIndex}/", $sImgName, $sSize, 'oxpic' . $iIndex);
        }
    }
public function getPictureUrl($iIndex = 1)
    {
        if ($iIndex) {
            $sImgName = false;
            if (!$this->_isFieldEmpty("oxarticles__oxpic" . $iIndex)) {
                $sImgName = basename($this->{"oxarticles__oxpic$iIndex"}->value);
            }

            $sSize = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aDetailImageSizes');

            return \OxidEsales\Eshop\Core\Registry::getPictureHandler()
                ->getProductPicUrl("product/{$iIndex}/", $sImgName, $sSize, 'oxpic' . $iIndex);
        }
    }
public function getPictureUrl ( $ iIndex = 1 ) { if ( $ iIndex ) { $ sImgName = false ; if ( ! $ this -> _isFieldEmpty ( "oxarticles__oxpic" . $ iIndex ) ) { $ sImgName = basename ( $ this -> { "oxarticles__oxpic$iIndex" } -> value ) ; } $ sSize = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'aDetailImageSizes' ) ; return \ OxidEsales \ Eshop \ Core \ Registry :: getPictureHandler ( ) -> getProductPicUrl ( "product/{$iIndex}/" , $ sImgName , $ sSize , 'oxpic' . $ iIndex ) ; } }
Returns article picture

@param int $iIndex picture index

@return string
Returns article picture