/** * Returns array of params => values which are used in hidden forms and as additional url params. * NOTICE: this method SHOULD return raw (non encoded into entities) parameters, because values * are processed by htmlentities() to avoid security and broken templates problems * This exact fix is added for article details to parse variant selection properly for widgets. * * @return array */ public function getNavigationParams() { $parameters = parent::getNavigationParams(); $variantSelectionListId = oxRegistry::getConfig()->getRequestParameter('varselid'); $selectListParameters = oxRegistry::getConfig()->getRequestParameter('sel'); if (!$variantSelectionListId && !$selectListParameters) { return $parameters; } if ($variantSelectionListId) { foreach ($variantSelectionListId as $key => $value) { $parameters["varselid[{$key}]"] = $value; } } if ($selectListParameters) { foreach ($selectListParameters as $key => $value) { $parameters["sel[{$key}]"] = $value; } } return $parameters; }
/** * Returns array of params => values which are used in hidden forms and as additional url params * * @return array */ public function getNavigationParams() { $aParams = oxUBase::getNavigationParams(); $aParams['recommid'] = oxConfig::getParameter('recommid'); return $aParams; }
/** * Returns array from parent::getNavigationParams(). If current request * contains "sourcecl" and "anid" parameters - appends array with this * data. Array is used to fill forms and append shop urls with actual * state parameters * * @return array */ public function getNavigationParams() { $aParams = parent::getNavigationParams(); // source class name if ($sSource = oxRegistry::getConfig()->getRequestParameter("sourcecl")) { $aParams['sourcecl'] = $sSource; } if ($sSource = oxRegistry::getConfig()->getRequestParameter("anid")) { $aParams['anid'] = $sSource; } return $aParams; }
/** * Returns array of params => values which are used in hidden forms and as additional url params. * NOTICE: this method SHOULD return raw (non encoded into entities) parameters, because values * are processed by htmlentities() to avoid security and broken templates problems * This exact fix is added for article details to parse variant selection properly for widgets. * * @return array */ public function getNavigationParams() { $aParams = parent::getNavigationParams(); $aVarSelParams = oxRegistry::getConfig()->getRequestParameter('varselid'); $aSelectListParams = oxRegistry::getConfig()->getRequestParameter('sel'); if (!$aVarSelParams && !$aSelectListParams) { return $aParams; } if ($aVarSelParams) { foreach ($aVarSelParams as $iKey => $sValue) { $aParams["varselid[{$iKey}]"] = $sValue; } } if ($aSelectListParams) { foreach ($aSelectListParams as $iKey => $sValue) { $aParams["sel[{$iKey}]"] = $sValue; } } return $aParams; }
/** * Returns array of params => values which are used in hidden forms and as additional url params * * @return array */ public function getNavigationParams() { $aParams = oxUBase::getNavigationParams(); $aParams['recommid'] = oxRegistry::getConfig()->getRequestParameter('recommid'); return $aParams; }
/** * Returns array from parent::getNavigationParams(). If current request * contains "sourcecl" and "anid" parameters - appends array with this * data. Array is used to fill forms and append shop urls with actual * state parameters * * @return array */ public function getNavigationParams() { $parameters = parent::getNavigationParams(); if ($sourceClass = oxRegistry::getConfig()->getRequestParameter("sourcecl")) { $parameters['sourcecl'] = $sourceClass; } if ($articleId = oxRegistry::getConfig()->getRequestParameter("anid")) { $parameters['anid'] = $articleId; } return $parameters; }