86 if ( $oVendor->getId() !=
'root' ) {
151 $sVendorId = $oVendor->getId();
154 $iNrOfCatArticles = (int) $this->
getConfig()->getConfigParam(
'iNrofCatArticles' );
155 $iNrOfCatArticles = $iNrOfCatArticles ? $iNrOfCatArticles : 1;
157 $oArtList =
oxNew(
'oxArticleList' );
158 $oArtList->setSqlLimit( $iNrOfCatArticles * $this->
_getRequestPageNr(), $iNrOfCatArticles );
162 $this->_iAllArtCnt = $oArtList->loadVendorArticles( $sVendorId, $oVendor );
165 $this->_iCntPages = round( $this->_iAllArtCnt / $iNrOfCatArticles + 0.49 );
167 return array( $oArtList, $this->_iAllArtCnt );
178 return $oVendor->getId();
197 $sUrl = $oVendor->getBaseSeoLink( $iLang, $iPage );
213 return $oVendor->getLink();
226 if ( $this->_blVisibleSubCats === null ) {
227 $this->_blVisibleSubCats =
false;
230 if ( $oVendor->getId() ==
'root' ) {
231 $this->_blVisibleSubCats = $oVendorTree->count();
232 $this->_oSubCatList = $oVendorTree;
247 if ( $this->_oSubCatList === null ) {
248 $this->_oSubCatList = array();
263 if ( $this->_aArticleList === null ) {
264 $this->_aArticleList = array();
265 if ( ( $oVendor = $this->
getActVendor() ) && ( $oVendor->getId() !=
'root' ) ) {
266 list( $aArticleList, $iAllArtCnt ) = $this->
_loadArticles( $oVendor );
268 $this->_aArticleList = $aArticleList;
282 if ( $this->_sCatTitle === null ) {
283 $this->_sCatTitle =
'';
285 $this->_sCatTitle = $oVendor->oxvendor__oxtitle->value;
299 return $oVendorTree->getPath();
315 if ( $this->_oActCategory === null ) {
316 $this->_oActCategory =
false;
319 $this->_oActCategory = $oVendor;
333 if ( $this->_sCatTreePath === null ) {
334 $this->_sCatTreePath =
false;
336 $this->_sCatTreePath = $oVendorTree->getPath();
349 if ( $this->
getActVendor()->oxvendor__oxshowsuffix->value ) {
350 return $this->
getConfig()->getActiveShop()->oxshops__oxtitlesuffix->value;
404 $sAddParams .= ($sAddParams?
'&':
'') .
"listtype={$this->_sListType}";
406 $sAddParams .=
"&cnid=v_" . $oVendor->getId();
422 foreach ( $oCatTree->getPath() as $oCat ) {
425 $aCatPath[
'link'] = $oCat->getLink();
426 $aCatPath[
'title'] = $oCat->oxcategories__oxtitle->value;
428 $aPaths[] = $aCatPath;
443 if ( $this->
_getVendorId() && $this->_oVendorTree === null) {
444 $oVendorTree =
oxNew(
'oxVendorList' );
445 $oVendorTree->buildVendorTree(
'vendorlist', $this->
getActVendor()->getId(), $this->
getConfig()->getShopHomeURL() );
446 $this->_oVendorTree = $oVendorTree;
461 $this->_oVendorTree = $oVendorTree;