/** * @param Mage_Eav_Model_Entity_Attribute $attribute * @param string $optionLabel */ protected function _createAttributeOption($attribute, $optionLabel) { $option = array('value' => array(array('0' => $optionLabel)), 'order' => array(0), 'delete' => array('')); $attribute->setOption($option); $attribute->save(); $this->_attributeOptions[$attribute->getAttributeCode()][] = $optionLabel; $this->_initTypeModels(); }