/** * Returns option label if attribute uses options. * * @param int $optionId * @return bool|int|string */ protected function _getOptionText($optionId) { if ($this->getAttributeModel()->getFrontendInput() == 'text') { return $optionId; // not an option id } return parent::_getOptionText($optionId); }