source/Application/Component/Locator.php
protected function _setVendorLocatorData($oLocatorTarget, $oCurrArticle)
    {
        if (($oVendor = $oLocatorTarget->getActVendor())) {
            $sVendorId = $oVendor->getId();
            $myUtils = \OxidEsales\Eshop\Core\Registry::getUtils();

            $blSeo = $myUtils->seoIsActive();

            // loading data for article navigation
            $oIdList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
            $oIdList->setCustomSorting($oLocatorTarget->getSortingSql($oLocatorTarget->getSortIdent()));
            $oIdList->loadVendorIds($sVendorId);

            //page number
            $iPage = $this->_findActPageNumber($oLocatorTarget->getActPage(), $oIdList, $oCurrArticle);

            $sAdd = null;
            if (!$blSeo) {
                $sAdd = 'listtype=vendor&amp;cnid=v_' . $sVendorId;
            }

            // setting product position in list, amount of articles etc
            $oVendor->iCntOfProd = $oIdList->count();
            $oVendor->iProductPos = $this->_getProductPos($oCurrArticle, $oIdList, $oLocatorTarget);

            if ($blSeo && $iPage) {
                $oVendor->toListLink = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderVendor::class)->getVendorPageUrl($oVendor, $iPage);
            } else {
                $oVendor->toListLink = $this->_makeLink($oVendor->getLink(), $this->_getPageNumber($iPage));
            }

            $oNextProduct = $this->_oNextProduct;
            $oBackProduct = $this->_oBackProduct;
            $oVendor->nextProductLink = $oNextProduct ? $this->_makeLink($oNextProduct->getLink(), $sAdd) : null;
            $oVendor->prevProductLink = $oBackProduct ? $this->_makeLink($oBackProduct->getLink(), $sAdd) : null;
        }
    }
protected function _setVendorLocatorData($oLocatorTarget, $oCurrArticle)
    {
        if (($oVendor = $oLocatorTarget->getActVendor())) {
            $sVendorId = $oVendor->getId();
            $myUtils = \OxidEsales\Eshop\Core\Registry::getUtils();

            $blSeo = $myUtils->seoIsActive();

            // loading data for article navigation
            $oIdList = oxNew(\OxidEsales\Eshop\Application\Model\ArticleList::class);
            $oIdList->setCustomSorting($oLocatorTarget->getSortingSql($oLocatorTarget->getSortIdent()));
            $oIdList->loadVendorIds($sVendorId);

            //page number
            $iPage = $this->_findActPageNumber($oLocatorTarget->getActPage(), $oIdList, $oCurrArticle);

            $sAdd = null;
            if (!$blSeo) {
                $sAdd = 'listtype=vendor&amp;cnid=v_' . $sVendorId;
            }

            // setting product position in list, amount of articles etc
            $oVendor->iCntOfProd = $oIdList->count();
            $oVendor->iProductPos = $this->_getProductPos($oCurrArticle, $oIdList, $oLocatorTarget);

            if ($blSeo && $iPage) {
                $oVendor->toListLink = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\SeoEncoderVendor::class)->getVendorPageUrl($oVendor, $iPage);
            } else {
                $oVendor->toListLink = $this->_makeLink($oVendor->getLink(), $this->_getPageNumber($iPage));
            }

            $oNextProduct = $this->_oNextProduct;
            $oBackProduct = $this->_oBackProduct;
            $oVendor->nextProductLink = $oNextProduct ? $this->_makeLink($oNextProduct->getLink(), $sAdd) : null;
            $oVendor->prevProductLink = $oBackProduct ? $this->_makeLink($oBackProduct->getLink(), $sAdd) : null;
        }
    }
protected function _setVendorLocatorData ( $ oLocatorTarget , $ oCurrArticle ) { if ( ( $ oVendor = $ oLocatorTarget -> getActVendor ( ) ) ) { $ sVendorId = $ oVendor -> getId ( ) ; $ myUtils = \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) ; $ blSeo = $ myUtils -> seoIsActive ( ) ; // loading data for article navigation $ oIdList = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ ArticleList :: class ) ; $ oIdList -> setCustomSorting ( $ oLocatorTarget -> getSortingSql ( $ oLocatorTarget -> getSortIdent ( ) ) ) ; $ oIdList -> loadVendorIds ( $ sVendorId ) ; //page number $ iPage = $ this -> _findActPageNumber ( $ oLocatorTarget -> getActPage ( ) , $ oIdList , $ oCurrArticle ) ; $ sAdd = null ; if ( ! $ blSeo ) { $ sAdd = 'listtype=vendor&amp;cnid=v_' . $ sVendorId ; } // setting product position in list, amount of articles etc $ oVendor -> iCntOfProd = $ oIdList -> count ( ) ; $ oVendor -> iProductPos = $ this -> _getProductPos ( $ oCurrArticle , $ oIdList , $ oLocatorTarget ) ; if ( $ blSeo && $ iPage ) { $ oVendor -> toListLink = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Application \ Model \ SeoEncoderVendor :: class ) -> getVendorPageUrl ( $ oVendor , $ iPage ) ; } else { $ oVendor -> toListLink = $ this -> _makeLink ( $ oVendor -> getLink ( ) , $ this -> _getPageNumber ( $ iPage ) ) ; } $ oNextProduct = $ this -> _oNextProduct ; $ oBackProduct = $ this -> _oBackProduct ; $ oVendor -> nextProductLink = $ oNextProduct ? $ this -> _makeLink ( $ oNextProduct -> getLink ( ) , $ sAdd ) : null ; $ oVendor -> prevProductLink = $ oBackProduct ? $ this -> _makeLink ( $ oBackProduct -> getLink ( ) , $ sAdd ) : null ; } }
Sets details locator data for articles that came from vendor list.

@param \OxidEsales\Eshop\Application\Controller\FrontendController $oLocatorTarget FrontendController object
@param \OxidEsales\Eshop\Application\Model\Article                 $oCurrArticle   current article
Sets details locator data for articles that came from vendor list .