Home  >  Article  >  Backend Development  >  ecshop 订单确认中显示省市地址信息的方法_php技巧

ecshop 订单确认中显示省市地址信息的方法_php技巧

WBOY
WBOYOriginal
2016-05-17 09:27:011124browse

先添加显示这些信息:
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']."-";
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn