We recently had a client who asked to have a link added to the magento admin order page so they could easily see what the product was. It requires a core hack so isn’t recommended. If you want to go ahead here’s the code:
Open app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml at look and at ~ line 68 until you find
[php]
<?php echo $this->getColumnHtml($_item, ‘name’) ?>
[/php]
Replace with:
[php]
<?php $_pullProduct = Mage::getModel(‘catalog/product’)->loadByAttribute(‘sku’, $_item->getData(‘sku’)); ?>
<a target="_blank" rel="external" href="<?php echo Mage::getUrl() . $_pullProduct->getData(‘url_path’); ?>"><?php echo $this->getColumnHtml($_item, ‘name’) ?></a>
[/php]
And save. You should now a link to the product in the admin order page.
Written by billy
Topics: Magento