Update custom product attribute

This tutorial I am explaining how to upgrade product attribute magento using the install script.In the previous tutorial I have explained how to create the custom product attribute.Please click here for the file structure and step by step explanation.If you want to create custom dropdown attribute with options please click here.

<?php
$installer = $this;
$entityTypeId = $installer->getEntityTypeId('catalog_product');
$idAttributeOldSelect = $this->getAttribute($entityTypeId, 'product_burntime', 'attribute_id');
$installer->updateAttribute($entityTypeId, $idAttributeOldSelect, array(
    'frontend_input' => 'multiselect'
));
$installer->endSetup();

Share this Tutorial