getAttribute('catalog_product', 'msrp_enabled', 'apply_to'); if ($msrpEnabled && strstr($msrpEnabled, Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE) == false) { $installer->updateAttribute('catalog_product', 'msrp_enabled', array( 'apply_to' => $msrpEnabled . ',' . Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE, )); } $msrpDisplay = $installer->getAttribute('catalog_product', 'msrp_display_actual_price_type', 'apply_to'); if ($msrpDisplay && strstr($msrpEnabled, Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE) == false) { $installer->updateAttribute('catalog_product', 'msrp_display_actual_price_type', array( 'apply_to' => $msrpDisplay . ',' . Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE, )); } $msrp = $installer->getAttribute('catalog_product', 'msrp', 'apply_to'); if ($msrp && strstr($msrpEnabled, Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE) == false) { $installer->updateAttribute('catalog_product', 'msrp', array( 'apply_to' => $msrp . ',' . Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE, )); }