0

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

enter image description here

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

1 Answer 1

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()): ?>
1
  • @ Gopal Patel: After tried what you suggested above, if products delete, the deleted products supposed in the order, the overall odor not displayed.
    – Gem
    Commented Jan 20, 2017 at 10:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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