magento的订单页面的最后一步,显示的订单的详情,只显示了产品名字,价格,等3-4个选项,现在我们希望把产品图片显示出来!

步骤如下:

1.

frontend/{your_theme}/decault/template/checkout/onepage/review/info.phtml

找到代码

 <table class="data-table" id="checkout-review-table">
   
<?php if ($this->helper('tax')->displayCartBothPrices()): $colspan = $rowspan = 2; else: $colspan = $rowspan = 1; endif; ?>
   
<col />
   
<col width="1" />
   
<col width="1" />
   
<col width="1" />
   
<col width="1" /> <
加入一个新行
2.
下面加入产品图片的列
  <thead>
       
<tr>
            <th rowspan="
<?php echo $rowspan ?>">&nbsp;</th> <!-- Here's the empty col for the image -->
            <th rowspan="
<?php echo $rowspan ?>"><?php echo $this->__('Product Name') ?></th>
            <th colspan="
<?php echo $colspan ?>" class="a-center"><?php echo $this->__('Price') ?></th>
3
frontend/{your_theme}/decault/template/checkout/onepage/review/item.phtml

<?php $_item = $this->getItem()?>
<tr>
    <!-- Product Image Here -->
    <td><img src="<?php echo $this->getProductThumbnail()->resize(75); ?>" width="75" height="75" alt="<?php echo $this->htmlEscape($this->getProductName()) ?>" /
></td>
   
<td><h3 class="product-name"><?php echo $this->htmlEscape($this->getProductName()) ?></h3>
加到想要显示的地方就可以了!!
然后在支付页面的底部的订单详情中就会显示出来产品图片!