Home >Backend Development >PHP Tutorial >How to display provincial and city address information in ecshop order confirmation_PHP tutorial

How to display provincial and city address information in ecshop order confirmation_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:39:41958browse

First add and display this information:
1. Modify the get_consignee function of the lib_order.php file (line 1798)
Add the following code in front of return:

Copy the code The code is as follows:

$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 ']."-";
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321502.htmlTechArticleFirst add and display this information: 1. Modify the get_consignee function (line 1798) of the lib_order.php file and add the following code in Before return: Copy the code as follows: $sql = "select 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