$installer = new Mage_Eav_Model_Entity_Setup('core_setup');
$installer->startSetup();
$ProductEntityTypeId = Mage::getModel('catalog/product')->getResource()->getTypeId();
$Option = array();
$Option['attribute_id'] = $installer->getAttributeId($ProductEntityTypeId, 'attribute_id');
$Option['value']['option'][0] = "value";
$installer->addAttributeOption($Option);
$installer->endSetup();
No comments:
Post a Comment