Skip to content

Commit

Permalink
Added "edit" action column to "Associated Products" grid of grouped p…
Browse files Browse the repository at this point in the history
…roducts (#4006)
  • Loading branch information
empiricompany committed May 24, 2024
1 parent e228538 commit 71932c6
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,31 @@ protected function _prepareColumns()
'filter_condition_callback' => [$this, '_addLinkModelFilterCallback']
]);

$this->addColumn('action', [
'header' => Mage::helper('catalog')->__('Action'),
'width' => '50px',
'type' => 'action',
'getter' => 'getId',
'actions' => [
[
'caption' => Mage::helper('catalog')->__('Edit'),
'id' => 'editlink',
'field' => 'id',
'onclick' => "popWin(this.href,'win','width=1000,height=700,resizable=1,scrollbars=1');return false;",
'url' => [
'base' => 'adminhtml/catalog_product/edit',
'params' => [
'store' => $this->getRequest()->getParam('store'),
'popup' => 1
],
],
],
],
'filter' => false,
'sortable' => false,
'index' => 'stores',
]);

return parent::_prepareColumns();
}

Expand Down

0 comments on commit 71932c6

Please # to comment.