Magento set product attribute in getAllOptions (get option from attribute)

File: \Model\Eav\Entity\Attribute\Source\Customeroptions.php

  public function getAllOptions($withEmpty = true, $defaultValues = false)
    {
        $source  = Mage::getModel('eav/config')->getAttribute('catalog_product', 'attributeName');
        return $source->getSource()->getAllOptions($withEmpty, $defaultValues);
    }
	
Advertisements