ECshop购物流程提交订单页网站面的商品列表里调用缩略图片
<td bgcolor="#ffffff">
<a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
(1) 打开./themes/default/flow.dwt 模板文件
复制代码替换为:
<td bgcolor="#ffffff" align="center">
<a href="goods.php?id={$goods.goods_id}" target="_blank"><img src="{$goods.goods_thumb}" border="0" title="{$goods.goods_name|escape:html}"
/><a><br>
<a href="goods.php?id={$goods.goods_id}" target="_blank" class="f6">{$goods.goods_name}</a>
复制代码替换为如下代码:
$arr[$key]['formated_subtotal'] = price_format($value['subtotal'], false);
/*增加结算中心商品图片*/
$goods_thumb = $GLOBALS['db']->getOne("SELECT `goods_thumb` FROM " . $GLOBALS['ecs']
->table('goods') . " WHERE `goods_id`='{$arr[$key]['goods_id']}'");
$arr[$key]['goods_thumb'] = get_image_path($row['goods_id'], $goods_thumb, true);
图片
复制代码(2) 打开文件./includes/lib_order.php
行841找到 代码:
$arr[$key]['formated_subtotal'] = price_format($value['subtotal'], false);
复制代码刷新前台提交订单页面,查看是否有商品图片显示
解决:
修改以下两个文件:
1.提交订单页面的商品列表里调用图片?