src/ShopProductExportBundle/objects/TPkgShopProductExportBaseEndPoint.class.php
protected function getArticleImageLink(&$oArticle, $iWidth = null)
    {
        $sLink = '';
        $oArticleImage = $oArticle->GetPrimaryImage();
        if (null !== $oArticleImage) {
            $oImage = $oArticleImage->GetImage(0, 'cms_media_id');
            if (null !== $oImage) {
                if (is_int($iWidth) && $iWidth > 0) {
                    $oThumbnail = $oImage->GetThumbnail($iWidth, 1000);
                    $sLink = $oThumbnail->GetFullURL();
                } else {
                    $sLink = $oImage->GetFullURL();
                }
            }
        }

        return $sLink;
    }
protected function getArticleImageLink(&$oArticle, $iWidth = null)
    {
        $sLink = '';
        $oArticleImage = $oArticle->GetPrimaryImage();
        if (null !== $oArticleImage) {
            $oImage = $oArticleImage->GetImage(0, 'cms_media_id');
            if (null !== $oImage) {
                if (is_int($iWidth) && $iWidth > 0) {
                    $oThumbnail = $oImage->GetThumbnail($iWidth, 1000);
                    $sLink = $oThumbnail->GetFullURL();
                } else {
                    $sLink = $oImage->GetFullURL();
                }
            }
        }

        return $sLink;
    }
protected function getArticleImageLink ( & $ oArticle , $ iWidth = null ) { $ sLink = '' ; $ oArticleImage = $ oArticle -> GetPrimaryImage ( ) ; if ( null !== $ oArticleImage ) { $ oImage = $ oArticleImage -> GetImage ( 0 , 'cms_media_id' ) ; if ( null !== $ oImage ) { if ( is_int ( $ iWidth ) && $ iWidth > 0 ) { $ oThumbnail = $ oImage -> GetThumbnail ( $ iWidth , 1000 ) ; $ sLink = $ oThumbnail -> GetFullURL ( ) ; } else { $ sLink = $ oImage -> GetFullURL ( ) ; } } } return $ sLink ; }
returns the link to the article image
you can set iWidth to get thumbnail links.

@param int|null       $iWidth
@param TdbShopArticle $oArticle

@return string
returns the link to the article image you can set iWidth to get thumbnail links .