如何在ecshop后台定单详细里添加图片
2016-09-07 22:03 来源:www.chinab4c.com 作者:ecshop专家
如何在ecshop后台定单详细里添加图片 admin/order.php 在admin/order.php文件里添加了一字段 (g.goods_thumb,),
/* 取得订单商品 */
$goods_list = array();
$goods_attr = array();
$sql = "SELECT o.*, g.goods_number AS storage, o.goods_attr, IFNULL(b.brand_name, '') AS brand_name " .
"FROM " . $ecs->table('order_goods') . " AS o ".
"LEFT JOIN " . $ecs->table('goods') . " AS g ON o.goods_id = g.goods_id " .
"LEFT JOIN " . $ecs->table('brand') . " AS b ON g.brand_id = b.brand_id " .
"WHERE o.order_id = '$order[order_id]' ";
$res = $db->query($sql);
while ($row = $db->fetchRow($res))
$sql = "SELECT o.*, g.goods_thumb, g.goods_number AS storage, o.goods_attr, IFNULL
(b.brand_name, '') AS brand_name " .
"FROM " . $ecs->table('order_goods') . " AS o ".
"LEFT JOIN " . $ecs->table('goods') . " AS g ON o.goods_id = g.goods_id " .
"LEFT JOIN " . $ecs->table('brand') . " AS b ON g.brand_id = b.brand_id " .
"WHERE o.order_id = '$order[order_id]' ";
在g.goods_number前加g.goods_thumb,
最后 order_info.htm 引用
<img src="/{$goods.goods_thumb}" width="100"/>
|
最近更新
常用插件
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...
- ecshop二次开发商品购买增
图片1香...
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...
- ecshop最小购买数量控制插
ecshop最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
ecshop热门问答
ecshop热门资料
ecshop修补
ecshop增加文章
ecshopyeslucy
ecshop空购物车
ecshop高手请进!
ecshopMemcache
ecshop首页设置
ecshop江苏省
ecshop免费版
ecshopconfig
ecshop转帖
ecshopvalue
ecshoppackages
ecshop饰品配件
ecshop伪静态规则
ecshop注册插件
ecshopcurrency
ecshop规范
ecshop葡萄酒商城
ecshop奔驰S级
ecshop败笔
ecshop批量下单插件
ecshop奖金
ecshop高峰期
ecshop新浪
dedecms非常慢
ecshop登出
ecshop返回值
ecshop过滤
ecshop用户接口