Skip to main content

Posts

Showing posts from January 15, 2014

How to add category value in dropdown of another module in magento

Put this line in your drop down attribute: 'values'   => DesignerToolSetting_Baseproduct_Block_Adminhtml_Baseproduct_Grid::getValueArray(), after that make a function in your grid.php public function getValueArray(){ $valuearray = Array(); $fontcat = Mage::getModel("baseshapes/baseshapes")->getCollection(); //echo '<pre>'; //print_r($fontcat); //echo '</pre>';die; //$fontcat->addFilter('status',0); foreach($fontcat as $categ){ $valuearray[$categ->getId()] = $categ->title; } return $valuearray; }