Skip to content

Commit 71932c6

Browse files
Added "edit" action column to "Associated Products" grid of grouped products (#4006)
1 parent e228538 commit 71932c6

File tree

1 file changed

+25
-0
lines changed
  • app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super

1 file changed

+25
-0
lines changed

app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,31 @@ protected function _prepareColumns()
174174
'filter_condition_callback' => [$this, '_addLinkModelFilterCallback']
175175
]);
176176

177+
$this->addColumn('action', [
178+
'header' => Mage::helper('catalog')->__('Action'),
179+
'width' => '50px',
180+
'type' => 'action',
181+
'getter' => 'getId',
182+
'actions' => [
183+
[
184+
'caption' => Mage::helper('catalog')->__('Edit'),
185+
'id' => 'editlink',
186+
'field' => 'id',
187+
'onclick' => "popWin(this.href,'win','width=1000,height=700,resizable=1,scrollbars=1');return false;",
188+
'url' => [
189+
'base' => 'adminhtml/catalog_product/edit',
190+
'params' => [
191+
'store' => $this->getRequest()->getParam('store'),
192+
'popup' => 1
193+
],
194+
],
195+
],
196+
],
197+
'filter' => false,
198+
'sortable' => false,
199+
'index' => 'stores',
200+
]);
201+
177202
return parent::_prepareColumns();
178203
}
179204

0 commit comments

Comments
 (0)