菜单

在ecshop用户中心我的订单列表中显示商品缩略图

2014-10-30 - Developer

在/includes/lib_transaction.php找到

$arr[] = array(‘order_id’       => $row[‘order_id’],
‘order_sn’       => $row[‘order_sn’],
‘order_time’     => local_date($GLOBALS[‘_CFG’][‘time_format’], $row[‘add_time’]),
‘order_status’   => $row[‘order_status’],
‘total_fee’      => price_format($row[‘total_fee’], false),
‘handler’        => $row[‘handler’]);
修改为

$arr[] = array(‘order_id’       => $row[‘order_id’],
‘order_sn’       => $row[‘order_sn’],
‘order_time’     => local_date($GLOBALS[‘_CFG’][‘time_format’], $row[‘add_time’]),
‘order_status’   => $row[‘order_status’],
‘total_fee’      => price_format($row[‘total_fee’], false),
‘handler’        => $row[‘handler’],
‘thumb’          => $row[‘thumb’]);

并在其前面添加

$row[‘thumb’] =$GLOBALS[‘db’] ->getOne(“select goods_thumb from”.
$GLOBALS[‘ecs’]->table(“goods”).
“where goods_id =(select min(goods_id) from”.
$GLOBALS[‘ecs’]->table(“order_goods”).
“where order_id=”.$row[‘order_id’].”)”);

在themes/default/user_transaction.dwt中

找到

<td bgcolor=”#ffffff”>{$lang.order_addtime}</td>

在其前面添加

<td bgcolor=”#ffffff”>缩略图</td>

再找到

<td align=”center” bgcolor=”#ffffff”>{$item.order_time}</td>

在其前面添加

<td  align=center bgcolor=”#ffffff”><img src=”{$item.thumb}” class=”img_sstb”/></td>

转载请注明: 转载自—艾瑞可erik

本文链接地址: http://erik.xyz/243.html

标签:,

发表评论