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);
111 $sActManufacturer =
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree') ? $sActManufacturer : null;
113 $sActVendor = (
getStr()->preg_match(
'/^v_.?/i', $sActCat)) ? $sActCat : null;
115 $sActCat = $this->
_addAdditionalParams($oProduct, $sActCat, $sActManufacturer, $sActTag, $sActVendor);
119 if ($sActCat === null && !$oProduct && !$sActManufacturer && !$sActTag) {
121 $sActCat = $this->
getConfig()->getActiveShop()->oxshops__oxdefcat->value;
122 if ($sActCat ==
'oxrootid') {
138 $oCategoryTree =
oxNew(
'oxCategoryList');
139 $oCategoryTree->buildTree($sActCat);
144 $oParentView->setCategoryTree($oCategoryTree);
148 $oParentView->setActiveCategory($oCategoryTree->getClickCat());
159 if (
$myConfig->getConfigParam(
'bl_perfLoadManufacturerTree')) {
160 $oManufacturerTree =
oxNew(
'oxmanufacturerlist');
161 $shopHomeURL =
$myConfig->getShopHomeURL();
162 $oManufacturerTree->buildManufacturerTree(
'manufacturerlist', $sActManufacturer, $shopHomeURL);
167 $oParentView->setManufacturerTree($oManufacturerTree);
171 if (($oManufacturer = $oManufacturerTree->getClickManufacturer())) {
172 $oParentView->setActManufacturer($oManufacturer);
192 $oParentView->setManufacturerlist($this->_oManufacturerTree);
193 $oParentView->setRootManufacturer($this->_oManufacturerTree->getRootCat());
196 if ($this->_oCategoryTree) {
221 if ((!$sListType || $sListType ==
'search') && ($sSearchPar || $sSearchCat || $sSearchVnd || $sSearchMan)) {
223 $sListType =
'search';
227 if ($sActManufacturer && ($sActManufacturer == $oProduct->getManufacturerId())) {
229 $sListType =
'manufacturer';
230 $sActCat = $sActManufacturer;
231 } elseif ($sActVendor && (substr($sActVendor, 2) == $oProduct->getVendorId())) {
233 $sListType =
'vendor';
234 $sActCat = $sActVendor;
235 } elseif ($sActTag) {
238 } elseif ($sActCat && $oProduct->isAssignedToCategory($sActCat)) {
247 $oParentView->setListType($sListType);
248 $oParentView->setCategoryId($sActCat);
263 $aArticleCats = $oProduct->getCategoryIds(
true);
264 if (is_array($aArticleCats) && count($aArticleCats)) {
265 $sActCat = reset($aArticleCats);
266 } elseif (($sActCat = $oProduct->getManufacturerId())) {
268 $sListType =
'manufacturer';
269 } elseif (($sActCat = $oProduct->getVendorId())) {
271 $sListType =
'vendor';
276 return array($sListType, $sActCat);
286 $this->_oCategoryTree = $oCategoryTree;
296 $this->_oManufacturerTree = $oManufacturerTree;