7,300 16

Add product attribute to setup

Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
$catalog = new Mage_Catalog_Model_Resource_Eav_Mysql4_Setup('catalog_setup'); $catalog->addAttribute('catalog_product','pickuprate', array( 'type' => 'int', 'input'=> 'select', 'label' => 'Pick Up Rate', 'user_defined' => 1, 'required' => 0, 'group'=> 'Prices', 'source' => 'Marketplace_Mod_Model_Pickuprategrp' ));
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus