Example #1
0
 /**
  * 1.8 FIX
  *
  * @param string|integer|Mage_Core_Model_Config_Element $attribute
  * @return Mage_Eav_Model_Entity_Attribute_Abstract || false
  */
 public function getProductAttribute($attribute)
 {
     $attributeModel = $this->getProduct()->getResource()->getAttribute($attribute);
     if (!$attributeModel && is_string($attribute) && $attribute == 'special_price') {
         $attributeModel = new Varien_Object();
         $attributeModel->getStoreLabel('');
     }
     return $attributeModel;
 }