Sunday, 6 July 2014

How To Add Product Images In Magento Order details Pages in Backend

Find Out

app/design/adminhtml/default/default/template/sales/order/view/items.phtml
Suppose we want to add product images then we have to add with an extra table head with the current haead
<th><?php echo $this->helper('sales')->__('Images') ?></th> // line No 39

And Next Step 


Again find out
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml

<td>
   <?php
    $obj = Mage::getModel('catalog/product');
     
    $_product = $obj->load($_item->getProductId());?>
    <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(150); ?>" alt="images" />
</td>

No comments:

Post a Comment