In the admin interface of Magento I need to modify the tables in the Sales / Order / View order so that it shows, besides the products name, their manufacturer as well.
I’m trying to look for the file to modify to make that happen. I thought I would find a section with all the columns that are displayed in app/code/core/Mage/Sales/Block/Order/Item/Renderer/Default.php but by inspecting it there seem to be no reference to the columns/product attributes.
I also tried to modify
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml
by changing
<?php echo $this->getColumnHtml($_item, 'name') ?>
into
<?php echo $this->getColumnHtml($_item, 'manufacturer') ?>
but it changed nothing, so I suppose that file is not involved…
Can anybody please point me to the right file to modify?
Thank you!
After quite a lot of browsing through the code and with some help from a collegue, we found out the two file to change for adding a column to such view:
app/design/adminhtml/default/default/template/sales/order/view/items.phtmlfor adding the table header
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtmlfor filling the column with data.I’m not really experienced with Magento but I guess that, in order to do a “clean job”, one should not directly modify those files but override them instead.
EDIT
app/design/adminhtml/default/default/template/downloadable/sales/order/view/items/renderer/downloadable.phtmlfor filling the column with data for downloadable products.