54 if (
$myConfig->getConfigParam(
'blDisableNavBars') &&
55 $myConfig->getTopActiveView()->getIsOrderStep()
62 if (
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree')) {
81 if (($oProduct = $oParentView->getViewProduct())) {
84 $oProduct =
oxNew(
'oxarticle');
85 if ($oProduct->load($sActProduct)) {
87 $oParentView->setViewProduct($oProduct);
113 $sActManufacturer =
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree') ? $sActManufacturer : null;
115 $sActVendor = (
getStr()->preg_match(
'/^v_.?/i', $sActCat)) ? $sActCat : null;
118 $sActCat = $this->
_addAdditionalParams($oProduct, $sActCat, $sActManufacturer, $sActTag, $sActVendor);
124 if ($sActCat === null && !$oProduct && !$sActManufacturer && !$sActTag) {
126 $sActCat = $this->
getConfig()->getActiveShop()->oxshops__oxdefcat->value;
127 if ($sActCat ==
'oxrootid') {
144 $oCategoryTree =
oxNew(
'oxCategoryList');
145 $oCategoryTree->buildTree($sActCat);
150 $oParentView->setCategoryTree($oCategoryTree);
154 $oParentView->setActiveCategory($oCategoryTree->getClickCat());
165 if (
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree')) {
166 $oManufacturerTree =
oxNew(
'oxmanufacturerlist');
167 $shopHomeURL =
$myConfig->getShopHomeURL();
168 $oManufacturerTree->buildManufacturerTree(
'manufacturerlist', $sActManufacturer, $shopHomeURL);
173 $oParentView->setManufacturerTree($oManufacturerTree);
177 if (($oManufacturer = $oManufacturerTree->getClickManufacturer())) {
178 $oParentView->setActManufacturer($oManufacturer);
198 $oParentView->setManufacturerlist($this->_oManufacturerTree);
199 $oParentView->setRootManufacturer($this->_oManufacturerTree->getRootCat());
202 if ($this->_oCategoryTree) {
229 if ((!$sListType || $sListType ==
'search') && ($sSearchPar || $sSearchCat || $sSearchVnd || $sSearchMan)) {
231 $sListType =
'search';
235 if ($sActManufacturer && ($sActManufacturer == $oProduct->getManufacturerId())) {
237 $sListType =
'manufacturer';
238 $sActCat = $sActManufacturer;
239 } elseif ($sActVendor && (substr($sActVendor, 2) == $oProduct->getVendorId())) {
241 $sListType =
'vendor';
242 $sActCat = $sActVendor;
244 } elseif ($sActTag) {
248 } elseif ($sActCat && $oProduct->isAssignedToCategory($sActCat)) {
257 $oParentView->setListType($sListType);
258 $oParentView->setCategoryId($sActCat);
273 $aArticleCats = $oProduct->getCategoryIds(
true);
274 if (is_array($aArticleCats) && count($aArticleCats)) {
275 $sActCat = reset($aArticleCats);
276 } elseif (($sActCat = $oProduct->getManufacturerId())) {
278 $sListType =
'manufacturer';
279 } elseif (($sActCat = $oProduct->getVendorId())) {
281 $sListType =
'vendor';
286 return array($sListType, $sActCat);
296 $this->_oCategoryTree = $oCategoryTree;
306 $this->_oManufacturerTree = $oManufacturerTree;