/** * Prepare columns * * @return Mage_Adminhtml_Block_Sales_Order_Create_Search_Grid */ protected function _prepareColumns() { parent::_prepareColumns(); $this->addColumnAfter('status', array('header' => Mage::helper('catalog')->__('Status'), 'width' => '70px', 'index' => 'status', 'type' => 'options', 'options' => Mage::getSingleton('catalog/product_status')->getOptionArray(), 'frame_callback' => array($this, 'decorateStatus')), 'price'); if (Mage::helper('catalog')->isModuleEnabled('Mage_CatalogInventory')) { $this->addColumnAfter('is_saleable', array('header' => Mage::helper('catalog')->__('Inventory'), 'width' => '130px', 'renderer' => 'adminhtml/catalog_product_edit_tab_super_config_grid_renderer_inventory', 'filter' => 'adminhtml/catalog_product_edit_tab_super_config_grid_filter_inventory', 'index' => 'is_saleable', 'frame_callback' => array($this, 'decorateInventory')), 'price'); } $this->getColumn('in_products')->setData('renderer', 'netalico_adminorderitem/adminhtml_sales_order_create_search_grid_renderer_checkbox'); return Mage_Adminhtml_Block_Widget_Grid::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumnAfter('type', array('header' => Mage::helper('catalog')->__('Type'), 'width' => '60px', 'index' => 'type_id', 'type' => 'options', 'options' => Mage::getSingleton('catalog/product_type')->getOptionArray()), 'name'); return parent::_prepareColumns(); }