For a store I am building, we are using grouped products to show all of the parts that go into a specific item, and using a breakdown image that labels all of the parts. We want to have a column on the grouped product list that shows the part label.
We can’t use an attributed assigned to the simple products since a part might be used in different breakdowns and have different part labels on each diagram.
I need to add a new field to the grouped products associated product links so that I can set the label. I have worked out something that works, sort of.
I modified the catalog_product_link_attribute table adding a new item with the following information.
link_type_id = 3
product_link_attribute_code = breakdown_part_no
data_type = varchar
I modified the Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Super/Group.php adding the following to the _prepareColumns method
'header' => Mage::helper('catalog')->__('Part No'),
'name' => 'breakdown_part_no',
'type' => 'varchar',
'index' => 'breakdown_part_no',
'width' => '60px',
'editable' => true,
This adds the column to the grid, and I can save the data and it works fine.
The problem that I am having is that if I edit the product and save it, it deletes all of the data from the new column. However, if I go to the Associated Products tab and click inside one of the text boxes for an item (which makes the interface show the disk icon on the Associated Product tab label), that specific item will save its data for the new column.