ecshop 订单确认中显示省市地址信息的方法
先添加显示这些信息:
1.修改lib_order.php文件的get_consignee函数(1798行)
添加如下代码在return前面:
1.修改lib_order.php文件的get_consignee函数(1798行)
添加如下代码在return前面:
代码如下:
$sql = "select region_name from ".$GLOBALS['ecs']->table('region') . " where region_id in(".$arr['country'].",".$arr['province'].",". $arr['city'].",".$arr['district'].")"; $address = $GLOBALS['db']->getAll($sql); foreach($address as $value) { $arr['address1'] .= $value['region_name']."-"; }
相关推荐
景泽元的编程 2019-12-24
辛苦的字幕君小样 2011-11-10
scjcjlu 2016-03-06
klshige 2019-06-25
会写code的凳子哥 2013-03-23
蔷薇部落 2013-03-10
langqiao 2013-01-09
88284453 2012-01-11
Balalala 2011-04-05
levysnail 2011-03-08
yixiaoqi00 2011-03-30
jsxin0 2017-11-08
bruceli 2014-06-19
BusyMonkey 2018-10-22
Letitgo 2013-02-19
的砖栏 2019-04-13
phpcrazy 2019-04-12
YClimb 2019-04-12