Magento Background Order Display product image modification method

Source: Internet
Author: User

Magento Backstage Orders originally is not display product picture, customer service business also get the website front desk to look for this product picture to provide to the delivery department, this is very inconvenient. In order to improve the work efficiency, should customer service business requirements, is now the Magento backstage orders to modify, so that the order page shows the product picture.

Open appdesignadminhtmldefaultdefaulttemplatesalesorderviewitems.phtml in <th><span><?php echo $this- >helper (' Sales ')->__ (' Item Status ')?></span></th> preceded by a line of code: <th><span><?php echo $this->helper (' Sales ')->__ (' Product Image ')?></span></th>

Open appdesignadminhtmldefaultdefaulttemplatesalesorderviewitemsrendererdefault.phtml in <td><?php echo $_    Item->getstatus ()?></td> preceded by the following code: <td> <?php $item _id = $_item->getproductid (); $item _imgurl = mage::getbaseurl (' media '). ' Catalog/product '.   Mage::getmodel (' catalog/product ')->load ($item _id)->getimage (); ?> <a target= "_blank" href= "<?php echo $item _imgurl;?>" > "></a> </td>

In this way, the background order page will show the product picture.

Magento Background Order Display product image modification method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.