0

I need to directly redirect products landing page from order page,

enter image description here

  • anchor on item name? – Gopal Patel Jan 18 '17 at 6:28
  • sorry, what you try to tell me ??? – Gem Jan 18 '17 at 6:28
  • you want to show link of product landing page? – Gopal Patel Jan 18 '17 at 6:30
  • if i click products name or sku, redirect to desired products landing page, – Gem Jan 18 '17 at 6:33
  • you want to show link of product landing page? yes – Gem Jan 18 '17 at 6:34
1

In file app/design/adminhtml/default/default/template/sales/items/column/name.phtml

Put Below code

    <?php $_product=Mage::getModel('catalog/product')->loadByAttribute('sku', $this->getSku());?>
    <h5 class="title"><span id="order_item_<?php echo $_item->getId() ?>_title"><a href="<?php echo $_product->getProductUrl() ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a></span></h5>
    <div><a href="<?php echo $_product->getProductUrl() ?>"><strong><?php echo $this->helper('sales')->__('SKU') ?>:</strong> <?php echo implode('<br />', Mage::helper('catalog')->splitSku($this->escapeHtml($this->getSku()))); ?></a></div>

After

<?php if ($_item = $this->getItem()): ?>
  • @ Gopal Patel: After tried what you suggested above, if products delete, the deleted products supposed in the order, the overall odor not displayed. – Gem Jan 20 '17 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.