Add a link to the product on the admin order page

Written by billy

Topics: Magento

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 echo $this->getColumnHtml($_item, 'name') ?>

Replace with:

<?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>

And save. You should now a link to the product in the admin order page.

1 Comment Comments For This Post I'd Love to Hear Yours!

  1. Ok awards says:

    I just looking for this update.Thanks for sharing.

1 Comment Trackbacks For This Post

  1. Add a link to the product on the admin order page

Leave a Comment Here's Your Chance to Be Heard!