Guest User

Untitled

a guest
Jun 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2.  
  3. class Custom_Adminhtml_Block_Catalog_Product_Grid extends Mage_Adminhtml_Block_Catalog_Product_Grid
  4. {
  5. protected function _prepareColumns()
  6. {
  7. $this->addColumn('preview', array(
  8. 'header' => Mage::helper('catalog')->__('Preview'),
  9. 'width' => '50px',
  10. 'type' => 'action',
  11. 'actions' => array(
  12. 'caption' => Mage::helper('catalog')->__('Preview'),
  13. 'url' => array(
  14. 'base' => '/catalog/product/view'
  15. 'params' => array()
  16. ),
  17. 'field' => 'id'
  18. ),
  19. 'filter' => false,
  20. 'sortable' => false,
  21. 'index' => 'id'
  22. ));
  23.  
  24. return parent::_prepareColumns();
  25. }
  26. }
Add Comment
Please, Sign In to add comment