Method of displaying city and city address information in ecshop order confirmation

  • 2020-03-31 20:28:53
  • OfStack

First add the display information:
1. Modify the get_consignee function of the lib_order.php file (line 1798)
Add the following code before 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']."-"; 
} 

Related articles: