Magento – Magento New Product Attribute Not Saving

attributesmagento-1.9post-dataproduct-attribute

I am having an issue in Magento where custom product attributes are not updating.

When setting the new attributes under Catalog->Manage Products->Product->General, the post data for that specific attribute of the product contains a null value. As such, the attribute is set to 0 in the case of one attribute, and null in the case of the second attribute. Here is the code I used to add the attributes.

$installer->addAttribute('catalog_product','sigis_gtin', array(
    'group' => 'General',
    'type' => 'text',
    'label' => 'SIGIS GTIN',
    'input' => 'text',
    'required' => false,
    'user_defined' => 1,
));

$installer->addAttribute('catalog_product','sigis_eligible', array(
    'group' => 'General',
    'type' => 'int',
    'label' => 'Sigis Eligibility',
    'input' => 'select',
    'required' => 0,
    'user_defined' => 1,
    'unique' => 0,
    'default' => 0,
    'source' => 'eav/entity_attribute_source_boolean',
    'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
));

My question is: Why is the Manage Product page sending null data, which in turn makes it so my changes don't save?

Best Answer

you can try adding this attribute to product attribute set. enter image description here