source/Application/Model/VendorList.php
public function buildVendorTree($sLinkTarget, $sActCat, $sShopHomeUrl)
    {
        $sActCat = str_replace('v_', '', $sActCat);

        //Load vendor list
        $this->loadVendorList();


        //Create fake vendor root category
        $this->_oRoot = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
        $this->_oRoot->load('root');

        //category fields
        $this->_addCategoryFields($this->_oRoot);
        $this->_aPath[] = $this->_oRoot;

        foreach ($this as $sVndId => $oVendor) {
            // storing active vendor object
            if ($sVndId == $sActCat) {
                $this->setClickVendor($oVendor);
            }

            $this->_addCategoryFields($oVendor);
            if ($sActCat == $oVendor->oxvendor__oxid->value) {
                $this->_aPath[] = $oVendor;
            }
        }

        $this->_seoSetVendorData();
    }
public function buildVendorTree($sLinkTarget, $sActCat, $sShopHomeUrl)
    {
        $sActCat = str_replace('v_', '', $sActCat);

        //Load vendor list
        $this->loadVendorList();


        //Create fake vendor root category
        $this->_oRoot = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
        $this->_oRoot->load('root');

        //category fields
        $this->_addCategoryFields($this->_oRoot);
        $this->_aPath[] = $this->_oRoot;

        foreach ($this as $sVndId => $oVendor) {
            // storing active vendor object
            if ($sVndId == $sActCat) {
                $this->setClickVendor($oVendor);
            }

            $this->_addCategoryFields($oVendor);
            if ($sActCat == $oVendor->oxvendor__oxid->value) {
                $this->_aPath[] = $oVendor;
            }
        }

        $this->_seoSetVendorData();
    }
public function buildVendorTree ( $ sLinkTarget , $ sActCat , $ sShopHomeUrl ) { $ sActCat = str_replace ( 'v_' , '' , $ sActCat ) ; //Load vendor list $ this -> loadVendorList ( ) ; //Create fake vendor root category $ this -> _oRoot = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Vendor :: class ) ; $ this -> _oRoot -> load ( 'root' ) ; //category fields $ this -> _addCategoryFields ( $ this -> _oRoot ) ; $ this -> _aPath [ ] = $ this -> _oRoot ; foreach ( $ this as $ sVndId => $ oVendor ) { // storing active vendor object if ( $ sVndId == $ sActCat ) { $ this -> setClickVendor ( $ oVendor ) ; } $ this -> _addCategoryFields ( $ oVendor ) ; if ( $ sActCat == $ oVendor -> oxvendor__oxid -> value ) { $ this -> _aPath [ ] = $ oVendor ; } } $ this -> _seoSetVendorData ( ) ; }
Creates fake root for vendor tree, and ads category list fileds for each vendor item

@param string $sLinkTarget  Name of class, responsible for category rendering
@param string $sActCat      Active category
@param string $sShopHomeUrl base shop url ($myConfig->getShopHomeUrl())
Creates fake root for vendor tree and ads category list fileds for each vendor item