您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop用户中心我的订单列表中怎么显示商品名称
梦曼2023-11-21 21:58:52ecshop商城教程已有人查阅
导读1.打开includes/lib_transaction.php的文件,找到get_user_orders的函数;2.打开模板文件 /themes/default/user_transaction.dwt 文件
1.打开includes/lib_transaction.php的文件,找到get_user_orders的函数
在
在
在
$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']);
的上面加上查询商品名称代码:
$row['goods_name'] =$GLOBALS['db'] ->getOne("select goods_name from".
$GLOBALS['ecs']->table("goods").
"where goods_id =(select min(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'],
'goods_name'=> $row['goods_name']
);
2.打开模板文件 /themes/default/user_transaction.dwt 文件在
<td bgcolor="#F2F2F2">{$lang.order_addtime}</td>
的下面添加
<td bgcolor="#F2F2F2">商品名称</td>
然后在
<td align="center" bgcolor="#ffffff">{$item.order_time}</td>
的下面添加
<td align="center" bgcolor="#ffffff">{$item.goods_name}</td>
清除缓存。
本文标签:
很赞哦! ()
相关文章
随机图文
-
ecshop商城查看全部商品分类中的商品数量不正确怎么修复
在ecshop中有个查看全部商品分类的页面—-catalog.php这个页面中显示的商品分类中的 分类商品为0,只有最后 的商品数量显示正确 -
ecshop增加调用广告位怎么变大加宽1024
ecshop加广告出现广告位的宽度值必须在1到1024之间,这点是非常郁闷的,因为现在宽屏网站逐渐成为主流,越来越多的宽屏网站进入了我们的视线 -
ecshop商品购买数量可以输入购买小数点的解决方法
客户遇到了这样一个问题,不是如何在购买数量上输入小数。因为一般来说,是不要输入小数的,因为像卖菜这种比较特殊,接下来我详细分析一下: -
ecshop会员注册页密码提示问题修改方法
两种方法1、直接修改语言包文件 languages/zh_cn/user.php找到下面部分并修改之 /* 密码找回问题 */$_LANG['pass
留言与评论 (共有 条评论) |