8 define(
'VIEW_INDEXSTATE_INDEX', 0);
9 define(
'VIEW_INDEXSTATE_NOINDEXNOFOLLOW', 1);
10 define(
'VIEW_INDEXSTATE_NOINDEXFOLLOW', 2);
294 'oxcmp_categories' => 0,
535 if (self::$_aCollectedComponentNames === null) {
536 self::$_aCollectedComponentNames = array_merge($this->_aComponentNames, $this->_aUserComponentNames);
540 if (($aUserCmps = $this->
getConfig()->getConfigParam(
'aUserComponentNames'))) {
541 self::$_aCollectedComponentNames = array_merge(self::$_aCollectedComponentNames, $aUserCmps);
545 unset(self::$_aCollectedComponentNames[
'oxcmp_basket']);
550 reset(self::$_aCollectedComponentNames);
566 if (!
isSearchEngineUrl() && $myUtils->seoIsActive() && ($sStdUrl = getRequestUrl(
'',
true))) {
570 $myUtils->redirect($this->
getConfig()->getCurrentShopUrl() . $sRedirectUrl,
false);
575 if ($this->
getConfig()->getConfigParam(
'blSeoLogging')) {
576 $sShopId = $this->
getConfig()->getShopId();
578 $sIdent = md5(strtolower($sStdUrl) . $sShopId . $sLangId);
583 "replace oxseologs ( oxstdurl, oxident, oxshopid, oxlang )
584 values ( " . $oDb->quote($sStdUrl) .
", '{$sIdent}', '{$sShopId}', '{$sLangId}' ) "
604 if ($this->_blLoadComponents) {
607 if (!isset($this->_oaComponents[$sComponentName])) {
609 $oComponent =
oxNew($sComponentName);
610 $oComponent->setParent($this);
611 $oComponent->setThisAction($sComponentName);
612 $this->_oaComponents[$sComponentName] = $oComponent;
617 $this->_oaComponents[$sComponentName]->init();
620 if (!method_exists($this, $this->
getFncName())) {
621 $this->_oaComponents[$sComponentName]->executeFunction($this->
getFncName());
638 if ($this->_sViewId) {
644 $iCur = (int) $oConfig->getShopCurrency();
647 $this->_sViewId =
"ox|$iLang|$iCur";
649 $this->_sViewId .=
"|" . ((int) $this->_blForceNoIndex) .
'|' . ((int) $this->
isRootCatChanged());
652 if ($oConfig->isSsl()) {
653 $this->_sViewId .=
"|ssl";
657 if (function_exists(
'customGetViewId')) {
658 $oExtViewId = customGetViewId();
660 if ($oExtViewId !== null) {
661 $this->_sViewId .=
'|' . md5(serialize($oExtViewId));
676 return $this->_blShowSorting && $this->
getConfig()->getConfigParam(
'blShowSorting');
686 $this->_oaComponents = $aComponents;
708 if (isset($sName) && isset($this->_oaComponents[$sName])) {
709 return $this->_oaComponents[$sName];
720 $this->_blIsOrderStep = $blIsOrderStep;
741 $this->_oActCategory = $oCategory;
761 if ($this->_sListType == null) {
762 if ($sListType = $this->
getConfig()->getRequestParameter(
'listtype')) {
763 $this->_sListType = $sListType;
764 } elseif ($sListType = $this->
getConfig()->getGlobalParameter(
'listtype')) {
765 $this->_sListType = $sListType;
779 if ($this->_sListDisplayType == null) {
782 if (!$this->_sListDisplayType) {
783 $this->_sListDisplayType = $this->
getConfig()->getConfigParam(
'sDefaultListDisplayType');
786 $this->_sListDisplayType = in_array((
string ) $this->_sListDisplayType, $this->_aListDisplayTypes) ?
787 $this->_sListDisplayType :
'infogrid';
790 if ($this->
getConfig()->getRequestParameter(
'ldtype')) {
805 if ($this->_sCustomListDisplayType == null) {
806 $this->_sCustomListDisplayType = $this->
getConfig()->getRequestParameter(
'ldtype');
808 if (!$this->_sCustomListDisplayType) {
823 $this->_sListType = $sType;
824 $this->
getConfig()->setGlobalParameter(
'listtype', $sType);
834 if ($this->_blLoadCurrency == null) {
835 $this->_blLoadCurrency =
false;
836 if ($blLoadCurrency = $this->
getConfig()->getConfigParam(
'bl_perfLoadCurrency')) {
837 $this->_blLoadCurrency = $blLoadCurrency;
851 if ($this->_blDontShowEmptyCats == null) {
852 $this->_blDontShowEmptyCats =
false;
853 if ($blDontShowEmptyCats = $this->
getConfig()->getConfigParam(
'blDontShowEmptyCategories')) {
854 $this->_blDontShowEmptyCats = $blDontShowEmptyCats;
868 return $this->
getConfig()->getConfigParam(
'bl_perfShowActionCatArticleCnt');
878 if ($this->_blLoadLanguage == null) {
879 $this->_blLoadLanguage =
false;
880 if ($blLoadLanguage = $this->
getConfig()->getConfigParam(
'bl_perfLoadLanguages')) {
881 $this->_blLoadLanguage = $blLoadLanguage;
895 if ($this->_iTopCatNavItmCnt == null) {
896 $iTopCatNavItmCnt = $this->
getConfig()->getConfigParam(
'iTopNaviCatCount');
897 $this->_iTopCatNavItmCnt = $iTopCatNavItmCnt ? $iTopCatNavItmCnt : 5;
912 if (!is_array($this->_aRssLinks)) {
913 $this->_aRssLinks = array();
919 $this->_aRssLinks[] = array(
'title' => $sTitle,
'link' => $sUrl);
921 $this->_aRssLinks[$key] = array(
'title' => $sTitle,
'link' => $sUrl);
932 return 'listorderby';
976 $aSortDirections = array(
'desc',
'asc');
982 oxRegistry::getUtils()->isValidAlpha($sSortDir) && in_array($oStr->strtolower($sSortDir), $aSortDirections)
984 $aSorting = array(
'sortby' => $sSortBy,
'sortdir' => $sSortDir);
1001 if (isset($aSorting[$sSortIdent])) {
1002 return $aSorting[$sSortIdent];
1013 $this->_sListOrderBy = $sColumn;
1023 $this->_sListOrderDir = $sDirection;
1034 $aColumns = explode(
'.', $this->_sListOrderBy);
1036 if (is_array($aColumns) && count($aColumns) > 1) {
1037 return $aColumns[1];
1062 return $this->_sMetaDescription = $sDescription;
1074 return $this->_sMetaKeywords = $sKeywords;
1088 $sShop = $this->
getConfig()->getShopId();
1091 ($sKeywords =
oxRegistry::get(
"oxSeoEncoder")->getMetaData($sOxId, $sDataType, $sShop, $iLang))
1107 $oContent =
oxNew(
'oxContent');
1108 if ($oContent->loadByIdent($sMetaIdent) &&
1109 $oContent->oxcontents__oxactive->value
1111 return getStr()->strip_tags($oContent->oxcontents__oxcontent->value);
1123 if ($this->_sMetaKeywords === null) {
1124 $this->_sMetaKeywords =
false;
1128 $this->_sMetaKeywords = $sKeywords;
1146 if ($this->_sMetaDescription === null) {
1147 $this->_sMetaDescription =
false;
1151 $this->_sMetaDescription = $sDescription;
1179 $this->_oActCurrency = $oCur;
1189 if ($this->_iCompItemsCnt === null) {
1191 $this->_iCompItemsCnt = is_array($aItems) ? count($aItems) : 0;
1202 $this->_blForceNoIndex =
true;
1213 if ($this->_blForceNoIndex) {
1215 } elseif ($this->
getConfig()->getRequestParameter(
'cur')) {
1218 switch ($this->
getConfig()->getRequestParameter(
'fnc')) {
1219 case 'tocomparelist':
1246 $this->_aMenueList = $aMenu;
1257 $iNrofCatArticles =
$myConfig->getConfigParam(
'iNrofCatArticles');
1259 $iNrofCatArticles = ($iNrofCatArticles) ? $iNrofCatArticles : 10;
1264 $aNrofCatArticles =
$myConfig->getConfigParam(
'aNrofCatArticlesInGrid');
1269 $aNrofCatArticles =
$myConfig->getConfigParam(
'aNrofCatArticles');
1272 if (!is_array($aNrofCatArticles) || !isset($aNrofCatArticles[0])) {
1273 $aNrofCatArticles = array($iNrofCatArticles);
1274 $myConfig->setConfigParam(
'aNrofCatArticles', $aNrofCatArticles);
1276 $iNrofCatArticles = $aNrofCatArticles[0];
1284 $iNrofCatArticles = (in_array($iNrofArticles, $aNrofCatArticles)) ? $iNrofArticles : $iNrofCatArticles;
1285 $oViewConf->setViewConfigParam(
'iartPerPage', $iNrofCatArticles);
1286 $oSession->setVariable(
'_artperpage', $iNrofCatArticles);
1287 } elseif (($iSessArtPerPage = $oSession->getVariable(
'_artperpage')) && is_numeric($iSessArtPerPage)) {
1289 $iNrofCatArticles = (in_array($iSessArtPerPage, $aNrofCatArticles)) ? $iSessArtPerPage : $iNrofCatArticles;
1290 $oViewConf->setViewConfigParam(
'iartPerPage', $iSessArtPerPage);
1291 $iNrofCatArticles = $iSessArtPerPage;
1293 $oViewConf->setViewConfigParam(
'iartPerPage', $iNrofCatArticles);
1297 $myConfig->setConfigParam(
'iNrofCatArticles', $iNrofCatArticles);
1321 if ($iLength != -1) {
1327 $iELength = ($iLength * 2);
1328 $sMeta = $oStr->substr($sMeta, 0, $iELength);
1332 $sMeta = $oStr->html_entity_decode($sMeta);
1334 $sMeta = $oStr->strip_tags($sMeta);
1337 $sMeta = $oStr->cleanStr($sMeta);
1340 if ($blRemoveDuplicatedWords) {
1345 $sMeta = str_replace(
' ,',
',', $sMeta);
1346 $aPattern = array(
"/,[\s\+\-\*]*,/",
"/\s+,/");
1347 $sMeta = $oStr->preg_replace($aPattern,
',', $sMeta);
1348 $sMeta =
oxRegistry::get(
"oxUtilsString")->minimizeTruncateString($sMeta, $iLength);
1349 $sMeta = $oStr->htmlspecialchars($sMeta);
1351 return trim($sMeta);
1368 if ($blRemoveDuplicatedWords) {
1372 return trim($sString);
1386 if (is_array($aInput)) {
1387 $aInput = implode(
" ", $aInput);
1391 $aInput = $oStr->preg_replace(
"/[" . preg_quote($this->_sRemoveMetaChars,
"/") .
"]/",
" ", $aInput);
1394 $aStrings = $oStr->preg_split(
"/[\s,]+/", $aInput);
1396 if ($sCount = count($aSkipTags)) {
1397 for ($iNum = 0; $iNum < $sCount; $iNum++) {
1398 $aSkipTags[$iNum] = $oStr->strtolower($aSkipTags[$iNum]);
1401 $sCount = count($aStrings);
1402 for ($iNum = 0; $iNum < $sCount; $iNum++) {
1403 $aStrings[$iNum] = $oStr->strtolower($aStrings[$iNum]);
1405 if (!$aStrings[$iNum] || in_array($aStrings[$iNum], $aSkipTags)) {
1406 unset($aStrings[$iNum]);
1411 return implode(
', ', array_unique($aStrings));
1425 $aParams[
'mnid'] = $oConfig->getRequestParameter(
'mnid');
1431 $aParams[
'recommid'] = $oConfig->getRequestParameter(
'recommid');
1433 $aParams[
'searchrecomm'] = $oConfig->getRequestParameter(
'searchrecomm',
true);
1434 $aParams[
'searchparam'] = $oConfig->getRequestParameter(
'searchparam',
true);
1435 $aParams[
'searchtag'] = $oConfig->getRequestParameter(
'searchtag',
true);
1437 $aParams[
'searchvendor'] = $oConfig->getRequestParameter(
'searchvendor');
1438 $aParams[
'searchcnid'] = $oConfig->getRequestParameter(
'searchcnid');
1439 $aParams[
'searchmanufacturer'] = $oConfig->getRequestParameter(
'searchmanufacturer');
1454 $aSorting[$sSortIdent][
'sortby'] = $sSortBy;
1455 $aSorting[$sSortIdent][
'sortdir'] = $sSortDir ? $sSortDir : null;
1472 $this->
setItemSorting($sSortIdent, $aSorting[
'sortby'], $aSorting[
'sortdir']);
1495 if (is_array($aSorting)) {
1496 return implode(
" ", $aSorting);
1507 return $this->
getConfig()->getActiveShop()->oxshops__oxtitlesuffix->value;
1524 return $this->
getConfig()->getActiveShop()->oxshops__oxtitleprefix->value;
1537 $aTitleParts = array();
1539 $aTitleParts[] = $this->
getTitle();
1543 $aTitleParts = array_filter($aTitleParts);
1545 if (count($aTitleParts)) {
1546 $sTitle = implode(
' | ', $aTitleParts);
1578 switch ($sListType) {
1582 $sRet .=
"&listtype={$sListType}";
1583 if ($sSearchParamForLink = rawurlencode($oConfig->getRequestParameter(
'searchparam',
true))) {
1584 $sRet .=
"&searchparam={$sSearchParamForLink}";
1587 if (($sVar = $oConfig->getRequestParameter(
'searchcnid',
true))) {
1588 $sRet .=
'&searchcnid=' . rawurlencode(rawurldecode($sVar));
1590 if (($sVar = $oConfig->getRequestParameter(
'searchvendor',
true))) {
1591 $sRet .=
'&searchvendor=' . rawurlencode(rawurldecode($sVar));
1593 if (($sVar = $oConfig->getRequestParameter(
'searchmanufacturer',
true))) {
1594 $sRet .=
'&searchmanufacturer=' . rawurlencode(rawurldecode($sVar));
1598 $sRet .=
"&listtype={$sListType}";
1599 if ($sParam = rawurlencode($oConfig->getRequestParameter(
'searchtag',
true))) {
1600 $sRet .=
"&searchtag={$sParam}";
1617 if (!isset($iLang)) {
1625 $sUrl = $oDisplayObj->getLink($iLang);
1629 $sUrl = $oEncoder->getStaticUrl($sConstructedUrl, $iLang);
1634 $sConstructedUrl = $oConfig->getShopCurrentURL($iLang) . $this->
_getRequestParams();
1635 $sUrl =
oxRegistry::get(
"oxUtilsUrl")->processUrl($sConstructedUrl,
true, null, $iLang);
1692 $aFnc = array(
'tobasket',
'login_noredirect',
'addVoucher',
'moveleft',
'moveright');
1693 if (in_array($sFnc, $aFnc)) {
1698 $sURL =
"cl={$sClass}";
1700 $sURL .=
"&fnc={$sFnc}";
1703 $sURL .=
"&cnid={$sVal}";
1706 $sURL .=
"&mnid={$sVal}";
1709 $sURL .=
"&anid={$sVal}";
1713 $sURL .=
"&page={$sVal}";
1717 $sURL .=
"&tpl={$sVal}";
1721 $sURL .=
"&oxloadid={$sVal}";
1727 if ($blAddPageNr && $iPgNr > 0) {
1728 $sURL .=
"&pgNr={$iPgNr}";
1733 $sURL .=
"&searchparam={$sVal}";
1737 $sURL .=
"&searchcnid={$sVal}";
1741 $sURL .=
"&searchvendor={$sVal}";
1745 $sURL .=
"&searchmanufacturer={$sVal}";
1749 $sURL .=
"&searchrecomm={$sVal}";
1753 $sURL .=
"&searchtag={$sVal}";
1757 $sURL .=
"&recommid={$sVal}";
1774 $aFnc = array(
'tobasket',
'login_noredirect',
'addVoucher');
1775 if (in_array($sFnc, $aFnc)) {
1780 $sURL =
"cl={$sClass}";
1782 $sURL .=
"&fnc={$sFnc}";
1785 $sURL .=
"&page={$sVal}";
1789 $sURL .=
"&tpl={$sVal}";
1793 $sURL .=
"&oxloadid={$sVal}";
1798 $sURL .=
"&pgNr={$iPgNr}";
1816 return (
int) $blShow;
1836 if ($this->_aSortColumns === null) {
1851 $this->_aSortColumns = $aSortColumns;
1882 if ($this->_oActiveRecommList === null) {
1883 $this->_oActiveRecommList =
false;
1884 if ($sOxId = $this->
getConfig()->getRequestParameter(
'recommid')) {
1885 $this->_oActiveRecommList =
oxNew(
'oxrecommlist');
1886 $this->_oActiveRecommList->load($sOxId);
1936 $sTranslationName =
'PAGE_TITLE_' . strtoupper($this->
getConfig()->getActiveView()->
getClassName());
1937 $sTranslated = $oLang->translateString($sTranslationName,
oxRegistry::getLang()->getBaseLanguage(),
false);
1939 return $sTranslationName == $sTranslated ? null : $sTranslated;
1950 if (!isset($this->_sActiveLangAbbr)) {
1952 if ($this->
getConfig()->getConfigParam(
'bl_perfLoadLanguages')) {
1953 $languages = $languageService->getLanguageArray();
1954 while (list($key, $language) = each($languages)) {
1955 if ($language->selected) {
1956 $this->_sActiveLangAbbr = $language->abbr;
1964 $this->_sActiveLangAbbr = $languageService->getLanguageAbbr();
1968 return $this->_sActiveLangAbbr;
1994 if ($this->_sAdditionalParams === null) {
1997 $this->_sAdditionalParams .=
'cl=' . $this->
getConfig()->getTopActiveView()->getClassName();
2000 $sSearchParamForLink = rawurlencode(
oxRegistry::getConfig()->getRequestParameter(
'searchparam',
true));
2001 if (isset($sSearchParamForLink)) {
2002 $this->_sAdditionalParams .=
"&searchparam={$sSearchParamForLink}";
2005 $this->_sAdditionalParams .=
'&searchtag=' . rawurlencode(rawurldecode($sVar));
2008 $this->_sAdditionalParams .=
'&searchcnid=' . rawurlencode(rawurldecode($sVar));
2011 $this->_sAdditionalParams .=
'&searchvendor=' . rawurlencode(rawurldecode($sVar));
2014 $this->_sAdditionalParams .=
'&searchmanufacturer=' . rawurlencode(rawurldecode($sVar));
2017 $this->_sAdditionalParams .=
'&cnid=' . rawurlencode(rawurldecode($sVar));
2020 $this->_sAdditionalParams .=
'&mnid=' . rawurlencode(rawurldecode($sVar));
2049 if ((strpos($sUrl,
'pgNr='))) {
2050 $sUrl = preg_replace(
'/pgNr=[0-9]*/',
'pgNr=' . $iPage, $sUrl);
2052 $sUrl .= ((strpos($sUrl,
'?') ===
false) ?
'?' :
'&') .
'pgNr=' . $iPage;
2055 $sUrl = preg_replace(
'/pgNr=[0-9]*/',
'', $sUrl);
2056 $sUrl = preg_replace(
'/\&\;\&\;/',
'&', $sUrl);
2057 $sUrl = preg_replace(
'/\?\&\;/',
'?', $sUrl);
2058 $sUrl = preg_replace(
'/\&\;$/',
'', $sUrl);
2083 return $this->_oPageNavigation;
2097 return $this->_oPageNavigation;
2110 startProfile(
'generatePageNavigation');
2112 $pageNavigation =
new stdClass();
2114 $pageNavigation->NrOfPages = $this->_iCntPages;
2116 $pageNavigation->actPage = $iActPage + 1;
2119 if ($iPositionCount == 0 || ($iPositionCount >= $pageNavigation->NrOfPages)) {
2121 $iFinishNo = $pageNavigation->NrOfPages;
2123 $iTmpVal = $iPositionCount - 3;
2124 $iTmpVal2 = floor(($iPositionCount - 4) / 2);
2127 if ($pageNavigation->actPage <= $iTmpVal) {
2129 $iFinishNo = $iTmpVal + 1;
2131 } elseif ($pageNavigation->actPage >= $pageNavigation->NrOfPages - $iTmpVal) {
2132 $iStartNo = $pageNavigation->NrOfPages - $iTmpVal;
2133 $iFinishNo = $pageNavigation->NrOfPages - 1;
2136 $iStartNo = $pageNavigation->actPage - $iTmpVal2;
2137 $iFinishNo = $pageNavigation->actPage + $iTmpVal2;
2141 if ($iActPage > 0) {
2142 $pageNavigation->previousPage = $this->
_addPageNrParam($sUrl, $iActPage - 1);
2145 if ($iActPage < $pageNavigation->NrOfPages - 1) {
2146 $pageNavigation->nextPage = $this->
_addPageNrParam($sUrl, $iActPage + 1);
2149 if ($pageNavigation->NrOfPages > 1) {
2151 for ($i = 1; $i < $pageNavigation->NrOfPages + 1; $i++) {
2153 if ($i == 1 || $i == $pageNavigation->NrOfPages || ($i >= $iStartNo && $i <= $iFinishNo)) {
2154 $page =
new stdClass();
2156 $page->selected = ($i == $pageNavigation->actPage) ? 1 : 0;
2157 $pageNavigation->changePage[$i] = $page;
2163 $pageNavigation->lastpage = $this->
_addPageNrParam($sUrl, $pageNavigation->NrOfPages - 1);
2166 stopProfile(
'generatePageNavigation');
2168 return $pageNavigation;
2179 foreach (array_keys($this->_oaComponents) as $sComponentName) {
2180 $this->_aViewData[$sComponentName] = $this->_oaComponents[$sComponentName]->render();
2188 if ($this->
getConfig()->getConfigParam(
'blDisableNavBars')) {
2189 $this->_iNewsRealStatus = 1;
2214 $this->_oProduct = $oProduct;
2234 if ($this->_iActPage === null) {
2235 $this->_iActPage = ( int ) $this->
getConfig()->getRequestParameter(
'pgNr');
2236 $this->_iActPage = ($this->_iActPage < 0) ? 0 : $this->_iActPage;
2251 if ($this->_oActTag === null) {
2252 $this->_oActTag =
new stdClass();
2253 $this->_oActTag->sTag = $sTag = $this->
getConfig()->getRequestParameter(
"searchtag", 1);
2261 $sConstructedUrl = $this->
getConfig()->getShopHomeURL() . $oSeoEncoderTag->getStdTagUri($sTag,
false);
2262 $this->_oActTag->link = $sLink ? $sLink : $sConstructedUrl;
2265 return $this->_oActTag;
2280 if ($this->_oActVendor === null) {
2281 $this->_oActVendor =
false;
2282 $sVendorId = $this->
getConfig()->getRequestParameter(
'cnid');
2283 $sVendorId = $sVendorId ? str_replace(
'v_',
'', $sVendorId) : $sVendorId;
2284 $oVendor =
oxNew(
'oxVendor');
2285 if ($oVendor->load($sVendorId)) {
2286 $this->_oActVendor = $oVendor;
2305 if ($this->_oActManufacturer === null) {
2307 $this->_oActManufacturer =
false;
2308 $sManufacturerId = $this->
getConfig()->getRequestParameter(
'mnid');
2309 $oManufacturer =
oxNew(
'oxManufacturer');
2310 if ($oManufacturer->load($sManufacturerId)) {
2311 $this->_oActManufacturer = $oManufacturer;
2325 $this->_oActVendor = $oVendor;
2335 $this->_oActManufacturer = $oManufacturer;
2345 if ($this->_oActSearch === null) {
2346 $this->_oActSearch =
new stdClass();
2347 $sUrl = $this->
getConfig()->getShopHomeURL();
2348 $this->_oActSearch->link =
"{$sUrl}cl=search";
2371 $this->_oCategoryTree = $oCatTree;
2391 $this->_oManufacturerTree = $oManufacturerTree;
2411 if ($this->_blTop5Action) {
2412 if ($this->_aTop5ArticleList === null) {
2413 $this->_aTop5ArticleList =
false;
2415 if (
$myConfig->getConfigParam(
'bl_perfLoadAktion')) {
2417 $oArtList =
oxNew(
'oxArticleList');
2418 $oArtList->loadTop5Articles($iCount);
2419 if ($oArtList->count()) {
2420 $this->_aTop5ArticleList = $oArtList;
2437 if ($this->_blBargainAction) {
2438 if ($this->_aBargainArticleList === null) {
2439 $this->_aBargainArticleList = array();
2440 if ($this->
getConfig()->getConfigParam(
'bl_perfLoadAktion')) {
2441 $oArtList =
oxNew(
'oxArticleList');
2442 $oArtList->loadActionArticles(
'OXBARGAIN');
2443 if ($oArtList->count()) {
2444 $this->_aBargainArticleList = $oArtList;
2463 if ($this->_blLowOrderPrice === null && ($oBasket = $this->
getSession()->getBasket())) {
2464 $this->_blLowOrderPrice = $oBasket->isBelowMinOrderPrice();
2504 foreach ($this->_aBlockRedirectParams as $sParam) {
2505 if ($this->
getConfig()->getRequestParameter($sParam) !== null) {
2537 $this->_aManufacturerlist = $aList;
2547 $this->_oRootVendor = $oVendor;
2567 $this->_oRootManufacturer = $oManufacturer;
2587 if ($this->_sVendorId === null) {
2588 $this->_sVendorId =
false;
2590 $this->_sVendorId = $oVendor->getId();
2604 if ($this->_sManufacturerId === null) {
2605 $this->_sManufacturerId =
false;
2607 $this->_sManufacturerId = $oManufacturer->getId();
2621 return $this->
getConfig()->getShopHomeURL() .
'cnid=oxmore';
2643 if (!isset($this->_aContents[$sIdent])) {
2644 $this->_aContents[$sIdent] =
oxNew(
'oxContent');
2645 $this->_aContents[$sIdent]->loadByIdent($sIdent);
2648 return $this->_aContents[$sIdent];
2668 if ($this->_aMustFillFields === null) {
2669 $this->_aMustFillFields =
false;
2672 $aMustFillFields = $this->
getConfig()->getConfigParam(
'aMustFillFields');
2673 if (is_array($aMustFillFields)) {
2674 $this->_aMustFillFields = array_flip($aMustFillFields);
2691 if (isset($aMustFillFields[$sField])) {
2706 if ($this->_sFormId === null) {
2711 return $this->_sFormId;
2721 if ($this->_blCanAcceptFormData === null) {
2722 $this->_blCanAcceptFormData =
false;
2724 $sFormId = $this->
getConfig()->getRequestParameter(
"uformid");
2728 if ($sFormId && $sFormId === $sSessionFormId) {
2729 $this->_blCanAcceptFormData =
true;
2736 return $this->_blCanAcceptFormData;
2746 if (isset($this->_oPromoFinishedList)) {
2747 return $this->_oPromoFinishedList;
2749 $this->_oPromoFinishedList =
oxNew(
'oxActionList');
2750 $this->_oPromoFinishedList->loadFinishedByCount(2);
2752 return $this->_oPromoFinishedList;
2762 if (isset($this->_oPromoCurrentList)) {
2763 return $this->_oPromoCurrentList;
2765 $this->_oPromoCurrentList =
oxNew(
'oxActionList');
2766 $this->_oPromoCurrentList->loadCurrent();
2768 return $this->_oPromoCurrentList;
2778 if (isset($this->_oPromoFutureList)) {
2779 return $this->_oPromoFutureList;
2781 $this->_oPromoFutureList =
oxNew(
'oxActionList');
2782 $this->_oPromoFutureList->loadFutureByCount(2);
2784 return $this->_oPromoFutureList;
2794 if (isset($this->_blShowPromotions)) {
2795 return $this->_blShowPromotions;
2797 $this->_blShowPromotions =
false;
2798 if (
oxNew(
'oxActionList')->areAnyActivePromotions()) {
2803 return $this->_blShowPromotions;
2813 if ($this->_blEnabledPrivateSales === null) {
2814 $this->_blEnabledPrivateSales = (bool) $this->
getConfig()->getConfigParam(
'blPsLoginEnabled');
2815 if ($this->_blEnabledPrivateSales && ($blCanPreview =
oxRegistry::getUtils()->canPreview()) !== null) {
2816 $this->_blEnabledPrivateSales = !$blCanPreview;
2830 return oxRegistry::get(
"oxInputValidator")->getFieldValidationErrors();
2850 $this->_blRootCatChanged = $blRootCatChanged;
2870 if ($this->_aInvoiceAddress == null) {
2871 $aAddress = $this->
getConfig()->getRequestParameter(
'invadr');
2873 $this->_aInvoiceAddress = $aAddress;
2887 if ($this->_aDeliveryAddress == null) {
2890 if (!$oConfig->getRequestParameter(
'reloadaddress')) {
2891 $this->_aDeliveryAddress = $oConfig->getRequestParameter(
'deladr');
2905 $this->_aDeliveryAddress = $aDeliveryAddress;
2915 $this->_aInvoiceAddress = $aAddress;
2925 if ($this->_sActiveUsername == null) {
2926 $this->_sActiveUsername =
false;
2927 $sUsername = $this->
getConfig()->getRequestParameter(
'lgn_usr');
2929 $this->_sActiveUsername = $sUsername;
2930 } elseif ($oUser = $this->
getUser()) {
2931 $this->_sActiveUsername = $oUser->oxuser__oxusername->value;
2945 return $this->
getConfig()->getRequestParameter(
'wishid');
2984 return (
int) $this->
getConfig()->getConfigParam(
"iNewBasketItemMessage");
2996 return $this->
getConfig()->getConfigParam(
"bl" . $sName .
"Enabled");
3006 if ($this->_blFbWidgetsOn === null) {
3010 $this->_blFbWidgetsOn = (bool) $oUtils->getOxCookie(
"fbwidgetson");
3023 return (
bool) $this->
getConfig()->getConfigParam(
"blEnableDownloads");
3033 return (
bool) $this->
getConfig()->getConfigParam(
'blShowRememberMe');
3048 $blShowNetPriceParameter = $oConfig->getConfigParam(
'blShowNetPrice');
3049 $blPerfCalcVatOnlyForBasketOrderParameter = $oConfig->getConfigParam(
'bl_perfCalcVatOnlyForBasketOrder');
3050 if ($blShowNetPriceParameter || $blPerfCalcVatOnlyForBasketOrderParameter) {
3052 } elseif ($oUser && $oUser->isPriceViewModeNetto()) {
3066 return (
bool) $this->
getConfig()->getConfigParam(
'bl_perfLoadPrice');
3076 return (
bool) $this->_blShowTagCloud && $this->
getConfig()->getConfigParam(
"blShowTags");
3087 $sWishId = $this->
getConfig()->getRequestParameter(
'wishid');
3090 $oWishUser =
oxNew(
'oxUser');
3091 if ($oWishUser->load($sUserId)) {