protected function getOptionText($optionId) { if ($this->_isPrice()) { if (preg_match('@^_P(\\d+)_(\\d+)$@', $optionId, $matches)) { $optionId = str_replace('_P', $this->getCurrencySymbol(), $optionId); return str_replace('_', ' - ' . $this->getCurrencySymbol(), $optionId); } } if ($this->hasAnswers()) { foreach ($this->getAnswers()->children() as $answer) { if ($answer->getAttribute('Id') == $optionId) { return $this->_prepareAnswerText($answer); } } } foreach ($this->searchHelper->getQuestionAnswers($this->getQuestion()->getAttribute('Id'))->Answers->Answer as $answer) { if ($answer->getAttribute('Id') == $optionId) { return $this->_prepareAnswerText($answer); } } return __('Unknown value'); }