8 define(
'VIEW_INDEXSTATE_INDEX', 0);
9 define(
'VIEW_INDEXSTATE_NOINDEXNOFOLLOW', 1);
10 define(
'VIEW_INDEXSTATE_NOINDEXFOLLOW', 2);
298 'oxcmp_categories' => 0,
543 if (self::$_aCollectedComponentNames === null) {
544 self::$_aCollectedComponentNames = array_merge($this->_aComponentNames, $this->_aUserComponentNames);
548 if (($aUserCmps = $this->
getConfig()->getConfigParam(
'aUserComponentNames'))) {
549 self::$_aCollectedComponentNames = array_merge(self::$_aCollectedComponentNames, $aUserCmps);
553 unset(self::$_aCollectedComponentNames[
'oxcmp_basket']);
558 reset(self::$_aCollectedComponentNames);
574 if (!
isSearchEngineUrl() && $myUtils->seoIsActive() && ($sStdUrl = getRequestUrl(
'',
true))) {
578 $myUtils->redirect($this->
getConfig()->getCurrentShopUrl() . $sRedirectUrl,
false);
583 if ($this->
getConfig()->getConfigParam(
'blSeoLogging')) {
584 $sShopId = $this->
getConfig()->getShopId();
586 $sIdent = md5(strtolower($sStdUrl) . $sShopId . $sLangId);
591 "replace oxseologs ( oxstdurl, oxident, oxshopid, oxlang )
592 values ( " . $oDb->quote($sStdUrl) .
", '{$sIdent}', '{$sShopId}', '{$sLangId}' ) "
612 if ($this->_blLoadComponents) {
615 if (!isset($this->_oaComponents[$sComponentName])) {
617 $oComponent =
oxNew($sComponentName);
618 $oComponent->setParent($this);
619 $oComponent->setThisAction($sComponentName);
620 $this->_oaComponents[$sComponentName] = $oComponent;
625 $this->_oaComponents[$sComponentName]->init();
628 if (!method_exists($this, $this->
getFncName())) {
629 $this->_oaComponents[$sComponentName]->executeFunction($this->
getFncName());
646 if ($this->_sViewId) {
652 $iCur = (int) $oConfig->getShopCurrency();
655 $this->_sViewId =
"ox|$iLang|$iCur";
657 $this->_sViewId .=
"|" . ((int) $this->_blForceNoIndex) .
'|' . ((int) $this->
isRootCatChanged());
660 if ($oConfig->isSsl()) {
661 $this->_sViewId .=
"|ssl";
665 if (function_exists(
'customGetViewId')) {
666 $oExtViewId = customGetViewId();
668 if ($oExtViewId !== null) {
669 $this->_sViewId .=
'|' . md5(serialize($oExtViewId));
684 return $this->_blShowSorting && $this->
getConfig()->getConfigParam(
'blShowSorting');
694 $this->_oaComponents = $aComponents;
716 if (isset($sName) && isset($this->_oaComponents[$sName])) {
717 return $this->_oaComponents[$sName];
728 $this->_blIsOrderStep = $blIsOrderStep;
749 $this->_oActCategory = $oCategory;
769 if ($this->_sListType == null) {
770 if ($sListType = $this->
getConfig()->getRequestParameter(
'listtype')) {
771 $this->_sListType = $sListType;
772 } elseif ($sListType = $this->
getConfig()->getGlobalParameter(
'listtype')) {
773 $this->_sListType = $sListType;
787 if ($this->_sListDisplayType == null) {
790 if (!$this->_sListDisplayType) {
791 $this->_sListDisplayType = $this->
getConfig()->getConfigParam(
'sDefaultListDisplayType');
794 $this->_sListDisplayType = in_array((
string ) $this->_sListDisplayType, $this->_aListDisplayTypes) ?
795 $this->_sListDisplayType :
'infogrid';
798 if ($this->
getConfig()->getRequestParameter(
'ldtype')) {
813 if ($this->_sCustomListDisplayType == null) {
814 $this->_sCustomListDisplayType = $this->
getConfig()->getRequestParameter(
'ldtype');
816 if (!$this->_sCustomListDisplayType) {
831 $this->_sListType = $sType;
832 $this->
getConfig()->setGlobalParameter(
'listtype', $sType);
842 if ($this->_blLoadCurrency == null) {
843 $this->_blLoadCurrency =
false;
844 if ($blLoadCurrency = $this->
getConfig()->getConfigParam(
'bl_perfLoadCurrency')) {
845 $this->_blLoadCurrency = $blLoadCurrency;
859 if ($this->_blDontShowEmptyCats == null) {
860 $this->_blDontShowEmptyCats =
false;
861 if ($blDontShowEmptyCats = $this->
getConfig()->getConfigParam(
'blDontShowEmptyCategories')) {
862 $this->_blDontShowEmptyCats = $blDontShowEmptyCats;
876 return $this->
getConfig()->getConfigParam(
'bl_perfShowActionCatArticleCnt');
886 if ($this->_blLoadLanguage == null) {
887 $this->_blLoadLanguage =
false;
888 if ($blLoadLanguage = $this->
getConfig()->getConfigParam(
'bl_perfLoadLanguages')) {
889 $this->_blLoadLanguage = $blLoadLanguage;
903 if ($this->_iTopCatNavItmCnt == null) {
904 $iTopCatNavItmCnt = $this->
getConfig()->getConfigParam(
'iTopNaviCatCount');
905 $this->_iTopCatNavItmCnt = $iTopCatNavItmCnt ? $iTopCatNavItmCnt : 5;
920 if (!is_array($this->_aRssLinks)) {
921 $this->_aRssLinks = array();
927 $this->_aRssLinks[] = array(
'title' => $sTitle,
'link' => $sUrl);
929 $this->_aRssLinks[$key] = array(
'title' => $sTitle,
'link' => $sUrl);
940 return 'listorderby';
984 $aSortDirections = array(
'desc',
'asc');
991 && in_array($oStr->strtolower($sSortDir), $aSortDirections)
992 && (in_array($sSortBy,
oxNew(
'oxArticle')->getFieldNames()) || in_array($sSortBy, $this->
getSortColumns()))
994 $aSorting = array(
'sortby' => $sSortBy,
'sortdir' => $sSortDir);
1011 if (isset($aSorting[$sSortIdent])) {
1012 return $aSorting[$sSortIdent];
1023 $this->_sListOrderBy = $sColumn;
1033 $this->_sListOrderDir = $sDirection;
1044 $aColumns = explode(
'.', $this->_sListOrderBy);
1046 if (is_array($aColumns) && count($aColumns) > 1) {
1047 return $aColumns[1];
1072 return $this->_sMetaDescription = $sDescription;
1084 return $this->_sMetaKeywords = $sKeywords;
1098 $sShop = $this->
getConfig()->getShopId();
1101 ($sKeywords =
oxRegistry::get(
"oxSeoEncoder")->getMetaData($sOxId, $sDataType, $sShop, $iLang))
1117 $oContent =
oxNew(
'oxContent');
1118 if ($oContent->loadByIdent($sMetaIdent) &&
1119 $oContent->oxcontents__oxactive->value
1121 return getStr()->strip_tags($oContent->oxcontents__oxcontent->value);
1133 if ($this->_sMetaKeywords === null) {
1134 $this->_sMetaKeywords =
false;
1138 $this->_sMetaKeywords = $sKeywords;
1156 if ($this->_sMetaDescription === null) {
1157 $this->_sMetaDescription =
false;
1161 $this->_sMetaDescription = $sDescription;
1189 $this->_oActCurrency = $oCur;
1199 if ($this->_iCompItemsCnt === null) {
1201 $this->_iCompItemsCnt = is_array($aItems) ? count($aItems) : 0;
1212 $this->_blForceNoIndex =
true;
1223 if ($this->_blForceNoIndex) {
1225 } elseif ($this->
getConfig()->getRequestParameter(
'cur')) {
1228 switch ($this->
getConfig()->getRequestParameter(
'fnc')) {
1229 case 'tocomparelist':
1256 $this->_aMenueList = $aMenu;
1267 $iNrofCatArticles =
$myConfig->getConfigParam(
'iNrofCatArticles');
1269 $iNrofCatArticles = ($iNrofCatArticles) ? $iNrofCatArticles : 10;
1274 $aNrofCatArticles =
$myConfig->getConfigParam(
'aNrofCatArticlesInGrid');
1279 $aNrofCatArticles =
$myConfig->getConfigParam(
'aNrofCatArticles');
1282 if (!is_array($aNrofCatArticles) || !isset($aNrofCatArticles[0])) {
1283 $aNrofCatArticles = array($iNrofCatArticles);
1284 $myConfig->setConfigParam(
'aNrofCatArticles', $aNrofCatArticles);
1286 $iNrofCatArticles = $aNrofCatArticles[0];
1294 $iNrofCatArticles = (in_array($iNrofArticles, $aNrofCatArticles)) ? $iNrofArticles : $iNrofCatArticles;
1295 $oViewConf->setViewConfigParam(
'iartPerPage', $iNrofCatArticles);
1296 $oSession->setVariable(
'_artperpage', $iNrofCatArticles);
1297 } elseif (($iSessArtPerPage = $oSession->getVariable(
'_artperpage')) && is_numeric($iSessArtPerPage)) {
1299 $iNrofCatArticles = (in_array($iSessArtPerPage, $aNrofCatArticles)) ? $iSessArtPerPage : $iNrofCatArticles;
1300 $oViewConf->setViewConfigParam(
'iartPerPage', $iSessArtPerPage);
1301 $iNrofCatArticles = $iSessArtPerPage;
1303 $oViewConf->setViewConfigParam(
'iartPerPage', $iNrofCatArticles);
1307 $myConfig->setConfigParam(
'iNrofCatArticles', $iNrofCatArticles);
1331 if ($iLength != -1) {
1337 $iELength = ($iLength * 2);
1338 $sMeta = $oStr->substr($sMeta, 0, $iELength);
1342 $sMeta = $oStr->html_entity_decode($sMeta);
1344 $sMeta = $oStr->strip_tags($sMeta);
1347 $sMeta = $oStr->cleanStr($sMeta);
1350 if ($blRemoveDuplicatedWords) {
1355 $sMeta = str_replace(
' ,',
',', $sMeta);
1356 $aPattern = array(
"/,[\s\+\-\*]*,/",
"/\s+,/");
1357 $sMeta = $oStr->preg_replace($aPattern,
',', $sMeta);
1358 $sMeta =
oxRegistry::get(
"oxUtilsString")->minimizeTruncateString($sMeta, $iLength);
1359 $sMeta = $oStr->htmlspecialchars($sMeta);
1361 return trim($sMeta);
1378 if ($blRemoveDuplicatedWords) {
1382 return trim($sString);
1396 if (is_array($aInput)) {
1397 $aInput = implode(
" ", $aInput);
1401 $aInput = $oStr->preg_replace(
"/[" . preg_quote($this->_sRemoveMetaChars,
"/") .
"]/",
" ", $aInput);
1404 $aStrings = $oStr->preg_split(
"/[\s,]+/", $aInput);
1406 if ($sCount = count($aSkipTags)) {
1407 for ($iNum = 0; $iNum < $sCount; $iNum++) {
1408 $aSkipTags[$iNum] = $oStr->strtolower($aSkipTags[$iNum]);
1411 $sCount = count($aStrings);
1412 for ($iNum = 0; $iNum < $sCount; $iNum++) {
1413 $aStrings[$iNum] = $oStr->strtolower($aStrings[$iNum]);
1415 if (!$aStrings[$iNum] || in_array($aStrings[$iNum], $aSkipTags)) {
1416 unset($aStrings[$iNum]);
1421 return implode(
', ', array_unique($aStrings));
1435 $aParams[
'mnid'] = $oConfig->getRequestParameter(
'mnid');
1442 $aParams[
'recommid'] = $oConfig->getRequestParameter(
'recommid');
1444 $aParams[
'searchrecomm'] = $oConfig->getRequestParameter(
'searchrecomm',
true);
1446 $aParams[
'searchparam'] = $oConfig->getRequestParameter(
'searchparam',
true);
1448 $aParams[
'searchtag'] = $oConfig->getRequestParameter(
'searchtag',
true);
1451 $aParams[
'searchvendor'] = $oConfig->getRequestParameter(
'searchvendor');
1452 $aParams[
'searchcnid'] = $oConfig->getRequestParameter(
'searchcnid');
1453 $aParams[
'searchmanufacturer'] = $oConfig->getRequestParameter(
'searchmanufacturer');
1468 $aSorting[$sSortIdent][
'sortby'] = $sSortBy;
1469 $aSorting[$sSortIdent][
'sortdir'] = $sSortDir ? $sSortDir : null;
1486 $this->
setItemSorting($sSortIdent, $aSorting[
'sortby'], $aSorting[
'sortdir']);
1509 if (is_array($aSorting)) {
1510 return implode(
" ", $aSorting);
1521 return $this->
getConfig()->getActiveShop()->oxshops__oxtitlesuffix->value;
1538 return $this->
getConfig()->getActiveShop()->oxshops__oxtitleprefix->value;
1551 $aTitleParts = array();
1553 $aTitleParts[] = $this->
getTitle();
1557 $aTitleParts = array_filter($aTitleParts);
1559 if (count($aTitleParts)) {
1560 $sTitle = implode(
' | ', $aTitleParts);
1592 switch ($sListType) {
1596 $sRet .=
"&listtype={$sListType}";
1597 if ($sSearchParamForLink = rawurlencode($oConfig->getRequestParameter(
'searchparam',
true))) {
1598 $sRet .=
"&searchparam={$sSearchParamForLink}";
1601 if (($sVar = $oConfig->getRequestParameter(
'searchcnid',
true))) {
1602 $sRet .=
'&searchcnid=' . rawurlencode(rawurldecode($sVar));
1604 if (($sVar = $oConfig->getRequestParameter(
'searchvendor',
true))) {
1605 $sRet .=
'&searchvendor=' . rawurlencode(rawurldecode($sVar));
1607 if (($sVar = $oConfig->getRequestParameter(
'searchmanufacturer',
true))) {
1608 $sRet .=
'&searchmanufacturer=' . rawurlencode(rawurldecode($sVar));
1613 $sRet .=
"&listtype={$sListType}";
1614 if ($sParam = rawurlencode($oConfig->getRequestParameter(
'searchtag',
true))) {
1615 $sRet .=
"&searchtag={$sParam}";
1633 if (!isset($iLang)) {
1641 $sUrl = $oDisplayObj->getLink($iLang);
1645 $sUrl = $oEncoder->getStaticUrl($sConstructedUrl, $iLang);
1650 $sConstructedUrl = $oConfig->getShopCurrentURL($iLang) . $this->
_getRequestParams();
1651 $sUrl =
oxRegistry::get(
"oxUtilsUrl")->processUrl($sConstructedUrl,
true, null, $iLang);
1710 $aFnc = array(
'tobasket',
'login_noredirect',
'addVoucher',
'moveleft',
'moveright');
1711 if (in_array($sFnc, $aFnc)) {
1716 $sURL =
"cl={$sClass}";
1718 $sURL .=
"&fnc={$sFnc}";
1721 $sURL .=
"&cnid={$sVal}";
1724 $sURL .=
"&mnid={$sVal}";
1727 $sURL .=
"&anid={$sVal}";
1731 $sURL .=
"&page={$sVal}";
1735 $sURL .=
"&tpl={$sVal}";
1739 $sURL .=
"&oxloadid={$sVal}";
1745 if ($blAddPageNr && $iPgNr > 0) {
1746 $sURL .=
"&pgNr={$iPgNr}";
1751 $sURL .=
"&searchparam={$sVal}";
1755 $sURL .=
"&searchcnid={$sVal}";
1759 $sURL .=
"&searchvendor={$sVal}";
1763 $sURL .=
"&searchmanufacturer={$sVal}";
1767 $sURL .=
"&searchrecomm={$sVal}";
1772 $sURL .=
"&searchtag={$sVal}";
1778 $sURL .=
"&recommid={$sVal}";
1796 $aFnc = array(
'tobasket',
'login_noredirect',
'addVoucher');
1797 if (in_array($sFnc, $aFnc)) {
1802 $sURL =
"cl={$sClass}";
1804 $sURL .=
"&fnc={$sFnc}";
1807 $sURL .=
"&page={$sVal}";
1811 $sURL .=
"&tpl={$sVal}";
1815 $sURL .=
"&oxloadid={$sVal}";
1820 $sURL .=
"&pgNr={$iPgNr}";
1838 return (
int) $blShow;
1858 if ($this->_aSortColumns === null) {
1873 $this->_aSortColumns = $aSortColumns;
1910 if ($this->_oActiveRecommList === null) {
1911 $this->_oActiveRecommList =
false;
1912 if ($sOxId = $this->
getConfig()->getRequestParameter(
'recommid')) {
1913 $this->_oActiveRecommList =
oxNew(
'oxrecommlist');
1914 $this->_oActiveRecommList->load($sOxId);
1964 $sTranslationName =
'PAGE_TITLE_' . strtoupper($this->
getConfig()->getActiveView()->
getClassName());
1965 $sTranslated = $oLang->translateString($sTranslationName,
oxRegistry::getLang()->getBaseLanguage(),
false);
1967 return $sTranslationName == $sTranslated ? null : $sTranslated;
1978 if (!isset($this->_sActiveLangAbbr)) {
1980 if ($this->
getConfig()->getConfigParam(
'bl_perfLoadLanguages')) {
1981 $languages = $languageService->getLanguageArray();
1982 while (list($key, $language) = each($languages)) {
1983 if ($language->selected) {
1984 $this->_sActiveLangAbbr = $language->abbr;
1992 $this->_sActiveLangAbbr = $languageService->getLanguageAbbr();
1996 return $this->_sActiveLangAbbr;
2022 if ($this->_sAdditionalParams === null) {
2025 $this->_sAdditionalParams .=
'cl=' . $this->
getConfig()->getTopActiveView()->getClassName();
2028 $sSearchParamForLink = rawurlencode(
oxRegistry::getConfig()->getRequestParameter(
'searchparam',
true));
2029 if (isset($sSearchParamForLink)) {
2030 $this->_sAdditionalParams .=
"&searchparam={$sSearchParamForLink}";
2034 $this->_sAdditionalParams .=
'&searchtag=' . rawurlencode(rawurldecode($sVar));
2038 $this->_sAdditionalParams .=
'&searchcnid=' . rawurlencode(rawurldecode($sVar));
2041 $this->_sAdditionalParams .=
'&searchvendor=' . rawurlencode(rawurldecode($sVar));
2044 $this->_sAdditionalParams .=
'&searchmanufacturer=' . rawurlencode(rawurldecode($sVar));
2047 $this->_sAdditionalParams .=
'&cnid=' . rawurlencode(rawurldecode($sVar));
2050 $this->_sAdditionalParams .=
'&mnid=' . rawurlencode(rawurldecode($sVar));
2079 if ((strpos($sUrl,
'pgNr='))) {
2080 $sUrl = preg_replace(
'/pgNr=[0-9]*/',
'pgNr=' . $iPage, $sUrl);
2082 $sUrl .= ((strpos($sUrl,
'?') ===
false) ?
'?' :
'&') .
'pgNr=' . $iPage;
2085 $sUrl = preg_replace(
'/pgNr=[0-9]*/',
'', $sUrl);
2086 $sUrl = preg_replace(
'/\&\;\&\;/',
'&', $sUrl);
2087 $sUrl = preg_replace(
'/\?\&\;/',
'?', $sUrl);
2088 $sUrl = preg_replace(
'/\&\;$/',
'', $sUrl);
2113 return $this->_oPageNavigation;
2127 return $this->_oPageNavigation;
2140 startProfile(
'generatePageNavigation');
2142 $pageNavigation =
new stdClass();
2144 $pageNavigation->NrOfPages = $this->_iCntPages;
2146 $pageNavigation->actPage = $iActPage + 1;
2149 if ($iPositionCount == 0 || ($iPositionCount >= $pageNavigation->NrOfPages)) {
2151 $iFinishNo = $pageNavigation->NrOfPages;
2153 $iTmpVal = $iPositionCount - 3;
2154 $iTmpVal2 = floor(($iPositionCount - 4) / 2);
2157 if ($pageNavigation->actPage <= $iTmpVal) {
2159 $iFinishNo = $iTmpVal + 1;
2161 } elseif ($pageNavigation->actPage >= $pageNavigation->NrOfPages - $iTmpVal + 1) {
2162 $iStartNo = $pageNavigation->NrOfPages - $iTmpVal;
2163 $iFinishNo = $pageNavigation->NrOfPages - 1;
2166 $iStartNo = $pageNavigation->actPage - $iTmpVal2;
2167 $iFinishNo = $pageNavigation->actPage + $iTmpVal2;
2171 if ($iActPage > 0) {
2172 $pageNavigation->previousPage = $this->
_addPageNrParam($sUrl, $iActPage - 1);
2175 if ($iActPage < $pageNavigation->NrOfPages - 1) {
2176 $pageNavigation->nextPage = $this->
_addPageNrParam($sUrl, $iActPage + 1);
2179 if ($pageNavigation->NrOfPages > 1) {
2181 for ($i = 1; $i < $pageNavigation->NrOfPages + 1; $i++) {
2183 if ($i == 1 || $i == $pageNavigation->NrOfPages || ($i >= $iStartNo && $i <= $iFinishNo)) {
2184 $page =
new stdClass();
2186 $page->selected = ($i == $pageNavigation->actPage) ? 1 : 0;
2187 $pageNavigation->changePage[$i] = $page;
2193 $pageNavigation->lastpage = $this->
_addPageNrParam($sUrl, $pageNavigation->NrOfPages - 1);
2196 stopProfile(
'generatePageNavigation');
2198 return $pageNavigation;
2209 foreach (array_keys($this->_oaComponents) as $sComponentName) {
2210 $this->_aViewData[$sComponentName] = $this->_oaComponents[$sComponentName]->render();
2218 if ($this->
getConfig()->getConfigParam(
'blDisableNavBars')) {
2219 $this->_iNewsRealStatus = 1;
2244 $this->_oProduct = $oProduct;
2264 if ($this->_iActPage === null) {
2265 $this->_iActPage = ( int ) $this->
getConfig()->getRequestParameter(
'pgNr');
2266 $this->_iActPage = ($this->_iActPage < 0) ? 0 : $this->_iActPage;
2283 if ($this->_oActTag === null) {
2284 $this->_oActTag =
new stdClass();
2285 $this->_oActTag->sTag = $sTag = $this->
getConfig()->getRequestParameter(
"searchtag", 1);
2293 $sConstructedUrl = $this->
getConfig()->getShopHomeURL() . $oSeoEncoderTag->getStdTagUri($sTag,
false);
2294 $this->_oActTag->link = $sLink ? $sLink : $sConstructedUrl;
2297 return $this->_oActTag;
2312 if ($this->_oActVendor === null) {
2313 $this->_oActVendor =
false;
2314 $sVendorId = $this->
getConfig()->getRequestParameter(
'cnid');
2315 $sVendorId = $sVendorId ? str_replace(
'v_',
'', $sVendorId) : $sVendorId;
2316 $oVendor =
oxNew(
'oxVendor');
2317 if ($oVendor->load($sVendorId)) {
2318 $this->_oActVendor = $oVendor;
2337 if ($this->_oActManufacturer === null) {
2339 $this->_oActManufacturer =
false;
2340 $sManufacturerId = $this->
getConfig()->getRequestParameter(
'mnid');
2341 $oManufacturer =
oxNew(
'oxManufacturer');
2342 if ($oManufacturer->load($sManufacturerId)) {
2343 $this->_oActManufacturer = $oManufacturer;
2357 $this->_oActVendor = $oVendor;
2367 $this->_oActManufacturer = $oManufacturer;
2377 if ($this->_oActSearch === null) {
2378 $this->_oActSearch =
new stdClass();
2379 $sUrl = $this->
getConfig()->getShopHomeURL();
2380 $this->_oActSearch->link =
"{$sUrl}cl=search";
2403 $this->_oCategoryTree = $oCatTree;
2423 $this->_oManufacturerTree = $oManufacturerTree;
2443 if ($this->_blTop5Action) {
2444 if ($this->_aTop5ArticleList === null) {
2445 $this->_aTop5ArticleList =
false;
2447 if (
$myConfig->getConfigParam(
'bl_perfLoadAktion')) {
2449 $oArtList =
oxNew(
'oxArticleList');
2450 $oArtList->loadTop5Articles($iCount);
2451 if ($oArtList->count()) {
2452 $this->_aTop5ArticleList = $oArtList;
2469 if ($this->_blBargainAction) {
2470 if ($this->_aBargainArticleList === null) {
2471 $this->_aBargainArticleList = array();
2472 if ($this->
getConfig()->getConfigParam(
'bl_perfLoadAktion')) {
2473 $oArtList =
oxNew(
'oxArticleList');
2474 $oArtList->loadActionArticles(
'OXBARGAIN');
2475 if ($oArtList->count()) {
2476 $this->_aBargainArticleList = $oArtList;
2495 if ($this->_blLowOrderPrice === null && ($oBasket = $this->
getSession()->getBasket())) {
2496 $this->_blLowOrderPrice = $oBasket->isBelowMinOrderPrice();
2536 foreach ($this->_aBlockRedirectParams as $sParam) {
2537 if ($this->
getConfig()->getRequestParameter($sParam) !== null) {
2569 $this->_aManufacturerlist = $aList;
2579 $this->_oRootVendor = $oVendor;
2599 $this->_oRootManufacturer = $oManufacturer;
2619 if ($this->_sVendorId === null) {
2620 $this->_sVendorId =
false;
2622 $this->_sVendorId = $oVendor->getId();
2636 if ($this->_sManufacturerId === null) {
2637 $this->_sManufacturerId =
false;
2639 $this->_sManufacturerId = $oManufacturer->getId();
2653 return $this->
getConfig()->getShopHomeURL() .
'cnid=oxmore';
2675 if (!isset($this->_aContents[$sIdent])) {
2676 $this->_aContents[$sIdent] =
oxNew(
'oxContent');
2677 $this->_aContents[$sIdent]->loadByIdent($sIdent);
2680 return $this->_aContents[$sIdent];
2700 if ($this->_aMustFillFields === null) {
2701 $this->_aMustFillFields =
false;
2704 $aMustFillFields = $this->
getConfig()->getConfigParam(
'aMustFillFields');
2705 if (is_array($aMustFillFields)) {
2706 $this->_aMustFillFields = array_flip($aMustFillFields);
2723 if (isset($aMustFillFields[$sField])) {
2738 if ($this->_sFormId === null) {
2743 return $this->_sFormId;
2753 if ($this->_blCanAcceptFormData === null) {
2754 $this->_blCanAcceptFormData =
false;
2756 $sFormId = $this->
getConfig()->getRequestParameter(
"uformid");
2760 if ($sFormId && $sFormId === $sSessionFormId) {
2761 $this->_blCanAcceptFormData =
true;
2768 return $this->_blCanAcceptFormData;
2778 if (isset($this->_oPromoFinishedList)) {
2779 return $this->_oPromoFinishedList;
2781 $this->_oPromoFinishedList =
oxNew(
'oxActionList');
2782 $this->_oPromoFinishedList->loadFinishedByCount(2);
2784 return $this->_oPromoFinishedList;
2794 if (isset($this->_oPromoCurrentList)) {
2795 return $this->_oPromoCurrentList;
2797 $this->_oPromoCurrentList =
oxNew(
'oxActionList');
2798 $this->_oPromoCurrentList->loadCurrent();
2800 return $this->_oPromoCurrentList;
2810 if (isset($this->_oPromoFutureList)) {
2811 return $this->_oPromoFutureList;
2813 $this->_oPromoFutureList =
oxNew(
'oxActionList');
2814 $this->_oPromoFutureList->loadFutureByCount(2);
2816 return $this->_oPromoFutureList;
2826 if (isset($this->_blShowPromotions)) {
2827 return $this->_blShowPromotions;
2829 $this->_blShowPromotions =
false;
2830 if (
oxNew(
'oxActionList')->areAnyActivePromotions()) {
2835 return $this->_blShowPromotions;
2845 if ($this->_blEnabledPrivateSales === null) {
2846 $this->_blEnabledPrivateSales = (bool) $this->
getConfig()->getConfigParam(
'blPsLoginEnabled');
2847 if ($this->_blEnabledPrivateSales && ($blCanPreview =
oxRegistry::getUtils()->canPreview()) !== null) {
2848 $this->_blEnabledPrivateSales = !$blCanPreview;
2862 return oxRegistry::get(
"oxInputValidator")->getFieldValidationErrors();
2882 $this->_blRootCatChanged = $blRootCatChanged;
2902 if ($this->_aInvoiceAddress == null) {
2903 $aAddress = $this->
getConfig()->getRequestParameter(
'invadr');
2905 $this->_aInvoiceAddress = $aAddress;
2919 if ($this->_aDeliveryAddress == null) {
2922 if (!$oConfig->getRequestParameter(
'reloadaddress')) {
2923 $this->_aDeliveryAddress = $oConfig->getRequestParameter(
'deladr');
2937 $this->_aDeliveryAddress = $aDeliveryAddress;
2947 $this->_aInvoiceAddress = $aAddress;
2957 if ($this->_sActiveUsername == null) {
2958 $this->_sActiveUsername =
false;
2959 $sUsername = $this->
getConfig()->getRequestParameter(
'lgn_usr');
2961 $this->_sActiveUsername = $sUsername;
2962 } elseif ($oUser = $this->
getUser()) {
2963 $this->_sActiveUsername = $oUser->oxuser__oxusername->value;
2977 return $this->
getConfig()->getRequestParameter(
'wishid');
3016 return (
int) $this->
getConfig()->getConfigParam(
"iNewBasketItemMessage");
3028 return $this->
getConfig()->getConfigParam(
"bl" . $sName .
"Enabled");
3040 if ($this->_blFbWidgetsOn === null) {
3044 $this->_blFbWidgetsOn = (bool) $oUtils->getOxCookie(
"fbwidgetson");
3057 return (
bool) $this->
getConfig()->getConfigParam(
"blEnableDownloads");
3067 return (
bool) $this->
getConfig()->getConfigParam(
'blShowRememberMe');
3082 $blShowNetPriceParameter = $oConfig->getConfigParam(
'blShowNetPrice');
3083 $blPerfCalcVatOnlyForBasketOrderParameter = $oConfig->getConfigParam(
'bl_perfCalcVatOnlyForBasketOrder');
3084 if ($blShowNetPriceParameter || $blPerfCalcVatOnlyForBasketOrderParameter) {
3086 } elseif ($oUser && $oUser->isPriceViewModeNetto()) {
3100 return (
bool) $this->
getConfig()->getConfigParam(
'bl_perfLoadPrice');
3112 return (
bool) $this->_blShowTagCloud && $this->
getConfig()->getConfigParam(
"blShowTags");
3123 $sWishId = $this->
getConfig()->getRequestParameter(
'wishid');
3126 $oWishUser =
oxNew(
'oxUser');
3127 if ($oWishUser->load($sUserId)) {