Exemple #1
0
 protected function _prepareValueOptions()
 {
     if ($this->getAttribute() === 'attribute_set_id') {
         $entityTypeId = Mage::getSingleton('eav/config')->getEntityType(Mage_Catalog_Model_Product::ENTITY)->getId();
         $selectOptions = Mage::getResourceModel('eav/entity_attribute_set_collection')->setEntityTypeFilter($entityTypeId)->load()->toOptionArray();
         $this->setData('value_select_options', $selectOptions);
     }
     return parent::_prepareValueOptions();
 }