I'm having problems trying to create a new option "Manage Options" when creating an attribute, do not know how to save the data correctly in the database, I'm overwriting "Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Options" with my module to create custom fields, I want he save these fields when I save the attribute.
My Module:
config.xml
<config>
<blocks>
<adminhtml>
<rewrite>
<catalog_product_attribute_edit_tabs>Ceicom_Swatches_Block_Adminhtml_Tabs</catalog_product_attribute_edit_tabs>
<catalog_product_attribute_edit_tab_options>Ceicom_Swatches_Block_Adminhtml_Options</catalog_product_attribute_edit_tab_options>
</rewrite>
</adminhtml>
</blocks>
</config>
Ceicom/Swatches/Block/Adminhtml/Options.php
class Ceicom_Swatches_Block_Adminhtml_Options extends Mage_Adminhtml_Block_Catalog_Product_Attribute_Edit_Tab_Options
{
public function __construct()
{
parent::__construct();
$this->setTemplate('ceicom/attribute/options.phtml');
}
}
in the phtml file I put in the custom fields
any idea how I can save the values of these fields in the bank correctly?