48 if (
$myConfig->getConfigParam(
'blDisableNavBars' ) &&
49 $myConfig->getTopActiveView()->getIsOrderStep() ) {
55 if (
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree' ) ) {
74 if ( ( $oProduct = $oParentView->getViewProduct() ) ) {
77 $oProduct =
oxNew(
'oxarticle' );
78 if ( $oProduct->load( $sActProduct ) ) {
80 $oParentView->setViewProduct( $oProduct );
103 $sActManufacturer =
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree' ) ? $sActManufacturer : null;
105 $sActVendor = (
getStr()->preg_match(
'/^v_.?/i', $sActCat ) ) ? $sActCat : null;
107 $sActCat = $this->
_addAdditionalParams( $oProduct, $sActCat, $sActManufacturer, $sActTag, $sActVendor );
111 if ( $sActCat === null && !$oProduct && !$sActManufacturer && !$sActTag ) {
113 $sActCat = $this->
getConfig()->getActiveShop()->oxshops__oxdefcat->value;
114 if ( $sActCat ==
'oxrootid' ) {
131 $oCategoryTree =
oxNew(
'oxCategoryList' );
132 $oCategoryTree->buildTree( $sActCat );
137 $oParentView->setCategoryTree( $oCategoryTree );
141 $oParentView->setActiveCategory( $oCategoryTree->getClickCat() );
154 if (
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree' ) ) {
155 $oManufacturerTree =
oxNew(
'oxmanufacturerlist' );
156 $oManufacturerTree->buildManufacturerTree(
'manufacturerlist', $sActManufacturer,
$myConfig->getShopHomeURL() );
161 $oParentView->setManufacturerTree( $oManufacturerTree );
165 if ( ( $oManufacturer = $oManufacturerTree->getClickManufacturer() ) ) {
166 $oParentView->setActManufacturer( $oManufacturer );
186 $oParentView->setManufacturerlist( $this->_oManufacturerTree );
187 $oParentView->setRootManufacturer( $this->_oManufacturerTree->getRootCat() );
190 if ( $this->_oCategoryTree ) {
215 if ( ( !$sListType || $sListType ==
'search' ) && ( $sSearchPar || $sSearchCat || $sSearchVnd || $sSearchMan ) ) {
217 $sListType =
'search';
221 if ( $sActManufacturer && ( $sActManufacturer == $oProduct->getManufacturerId() ) ) {
223 $sListType =
'manufacturer';
224 $sActCat = $sActManufacturer;
225 } elseif ( $sActVendor && ( substr( $sActVendor, 2 ) == $oProduct->getVendorId() ) ) {
227 $sListType =
'vendor';
228 $sActCat = $sActVendor;
229 } elseif ( $sActTag ) {
232 } elseif ( $sActCat && $oProduct->isAssignedToCategory( $sActCat ) ) {
241 $oParentView->setListType( $sListType );
242 $oParentView->setCategoryId( $sActCat );
257 $aArticleCats = $oProduct->getCategoryIds(
true );
258 if ( is_array( $aArticleCats ) && count( $aArticleCats ) ) {
259 $sActCat = reset( $aArticleCats );
260 } elseif ( ( $sActCat = $oProduct->getManufacturerId() ) ) {
262 $sListType =
'manufacturer';
263 } elseif ( ( $sActCat = $oProduct->getVendorId() ) ) {
265 $sListType =
'vendor';
270 return array( $sListType, $sActCat );
282 $this->_oCategoryTree = $oCategoryTree;
294 $this->_oManufacturerTree = $oManufacturerTree;