首先我们来打开 /includes/lib_transaction.php 文件 get_user_orders 该方法里面
$row['shipping_status'] = ($row['shipping_status'] == SS_SHIPPED_ING) ? SS_PREPARING : $row['shipping_status'];
代码下面添加
$row['thumb'] =$GLOBALS['db'] ->getOne('select goods_thumb from'.$GLOBALS['ecs']->table('goods').'where goods_id =(select goods_id from'.$GLOBALS['ecs']->table('order_goods').
'where order_id='.$row['order_id'].')');
然后下面的代码 增加红色部分颜色的代码
$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']);
然后前台打开 user_transaction.dwt
搜索 然后
添加代码
联系客服