How can i create products link, if i click Items Ordered Products in Order View, its go to products page in website. So, i can i view directly from Order View page.
1 Answer
Just goto app/design/adminhtml/default/template/sales/order/view/items/renderer/default.phtml
.
Then add this code
if($_item->getProductId()){
$product_collection = Mage::getModel('catalog/product')->getCollection()
->addAttributeToFilter('entity_id', $_item->getProductId())
->addUrlRewrite();
if($product_collection->getSize()):
$product_collection_url = $product_collection->getFirstItem()->getProductUrl();
endif;
}