source/Application/Model/Article.php
protected function _hasMasterImage($iIndex)
    {
        $sPicName = basename($this->{"oxarticles__oxpic" . $iIndex}->value);

        if ($sPicName == "nopic.jpg" || $sPicName == "") {
            return false;
        }
        if ($this->isVariant() &&
            $this->getParentArticle() &&
            $this->getParentArticle()->{"oxarticles__oxpic" . $iIndex}->value == $this->{"oxarticles__oxpic" . $iIndex}->value
        ) {
            return false;
        }

        $sMasterPic = 'product/' . $iIndex . "/" . $sPicName;

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getMasterPicturePath($sMasterPic)) {
            return true;
        }

        return false;
    }
protected function _hasMasterImage($iIndex)
    {
        $sPicName = basename($this->{"oxarticles__oxpic" . $iIndex}->value);

        if ($sPicName == "nopic.jpg" || $sPicName == "") {
            return false;
        }
        if ($this->isVariant() &&
            $this->getParentArticle() &&
            $this->getParentArticle()->{"oxarticles__oxpic" . $iIndex}->value == $this->{"oxarticles__oxpic" . $iIndex}->value
        ) {
            return false;
        }

        $sMasterPic = 'product/' . $iIndex . "/" . $sPicName;

        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getMasterPicturePath($sMasterPic)) {
            return true;
        }

        return false;
    }
protected function _hasMasterImage ( $ iIndex ) { $ sPicName = basename ( $ this -> { "oxarticles__oxpic" . $ iIndex } -> value ) ; if ( $ sPicName == "nopic.jpg" || $ sPicName == "" ) { return false ; } if ( $ this -> isVariant ( ) && $ this -> getParentArticle ( ) && $ this -> getParentArticle ( ) -> { "oxarticles__oxpic" . $ iIndex } -> value == $ this -> { "oxarticles__oxpic" . $ iIndex } -> value ) { return false ; } $ sMasterPic = 'product/' . $ iIndex . "/" . $ sPicName ; if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getMasterPicturePath ( $ sMasterPic ) ) { return true ; } return false ; }
Checks if article has uploaded master image for selected picture

@param int $iIndex master picture index

@return bool
Checks if article has uploaded master image for selected picture