1.打开app\design\adminhtml\default\default\template\sales\order\view\items\renderer\default.phtml ,
找到第一个<td></td> 大约30行的位置
2.修改代码如下:
<td>
<?php if ($this->canDisplayContainer()): ?>
<div id="<?php echo $this->getHtmlId() ?>" class="item-container">
<?php endif; ?>
<div class="item-text">
<?php
$product_url = Mage::getBaseUrl().Mage::getModel('catalog/product')->load($_item->getProductId())->getUrlPath();
?>
<a href="<?php echo $product_url ?>" target="_blank"> <?php echo $this->getColumnHtml($_item, 'name') ?></a>
</div>
<?php if ($this->canDisplayContainer()): ?>
</div>
<?php endif ?>
</td>
本文详细介绍了如何在Magento中通过编辑特定模板文件来修改订单视图项目的显示方式,特别是如何实现产品链接的自动跳转到产品详情页面。
4279

被折叠的 条评论
为什么被折叠?



