/** * Get attribute value. * * Backward compatibility with versions < 1.13.0.0 * * @param Varien_Object $object * @return mixed */ protected function _getAttributeValue($object) { // just use the parent in case the method change in future versions if (method_exists(get_parent_class($this), '_getAttributeValue')) { return parent::_getAttributeValue($object); } // reproduce functionality from 1.13 $attrCode = $this->getAttribute(); $storeId = $object->getStoreId(); $defaultStoreId = Mage_Core_Model_App::ADMIN_STORE_ID; $productValues = isset($this->_entityAttributeValues[$object->getId()]) ? $this->_entityAttributeValues[$object->getId()] : array(); $defaultValue = isset($productValues[$defaultStoreId]) ? $productValues[$defaultStoreId] : $object->getData($attrCode); $value = isset($productValues[$storeId]) ? $productValues[$storeId] : $defaultValue; $value = $this->_prepareDatetimeValue($value, $object); $value = $this->_prepareMultiselectValue($value, $object); return $value; }