码迷,mamicode.com
首页 > 其他好文 > 详细

修改ecshop让订单详情里将会员地址详情全部显示

时间:2014-12-18 01:39:15      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:http   ar   io   sp   on   div   art   bs   cti   

bubuko.com,布布扣

bubuko.com,布布扣
bubuko.com,布布扣
bubuko.com,布布扣

 

$sql = "SELECT concat(IFNULL(c.region_name, ‘‘), ‘  ‘, IFNULL(p.region_name, ‘‘), " .

                "‘  ‘, IFNULL(t.region_name, ‘‘), ‘  ‘, IFNULL(d.region_name, ‘‘)) AS region " .

            "FROM " . $GLOBALS[‘ecs‘]->table(‘order_info‘) . " AS o " .

                "LEFT JOIN " . $GLOBALS[‘ecs‘]->table(‘region‘) . " AS c ON o.country = c.region_id " .

                "LEFT JOIN " . $GLOBALS[‘ecs‘]->table(‘region‘) . " AS p ON o.province = p.region_id " .

                "LEFT JOIN " . $GLOBALS[‘ecs‘]->table(‘region‘) . " AS t ON o.city = t.region_id " .

                "LEFT JOIN " . $GLOBALS[‘ecs‘]->table(‘region‘) . " AS d ON o.district = d.region_id " .

            "WHERE o.order_id = ‘$order[order_id]‘";

       $res = $GLOBALS[‘db‘]->getRow($sql);

 

       $smarty->assign(‘address‘,$res[‘region‘]);

在user.php中的

elseif ($action == ‘order_detail‘)里面加上上面那句话

 

在user_transaction.dwt中找到对应的代码显示出来即可

修改ecshop让订单详情里将会员地址详情全部显示

标签:http   ar   io   sp   on   div   art   bs   cti   

原文地址:http://www.cnblogs.com/GmrBrian/p/4170814.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!