快递单打印,不调用省份是什么问题

2016-07-07 15:22 来源:www.chinab4c.com 作者:ecshop专家

快递单打印,只可以调用国家,和详细地址,不能调用省、市、区,是什么问题,应该修改哪里

回答:
admin\order.php里。你要取得相关的数据。

详细怎么操作,admin\order.php
这个文件里边有显示国家、省、市、区啊,还要怎么操作啊,详细点,不太明白



文件里边有这些代码啊,,现在是不调用省、市、区。国家、详细地址等,都正常

/* 标签信息 */
$lable_box = array();
$lable_box['t_shop_country'] = $region_array[$_CFG['shop_country']]; //网店-国家
$lable_box['t_shop_city'] = $region_array[$_CFG['shop_city']]; //网店-城市
$lable_box['t_shop_province'] = $region_array[$_CFG['shop_province']]; //网店-省份
$lable_box['t_shop_name'] = $_CFG['shop_name']; //网店-名称
$lable_box['t_shop_district'] = ''; //网店-区/县
$lable_box['t_shop_tel'] = $_CFG['service_phone']; //网店-联系电话
$lable_box['t_shop_address'] = $_CFG['shop_address']; //网店-地址
$lable_box['t_customer_country'] = $region_array[$order['country']]; //收件人-国家
$lable_box['t_customer_province'] = $region_array[$order['province']]; //收件人-省份
$lable_box['t_customer_city'] = $region_array[$order['city']]; //收件人-城市
$lable_box['t_customer_district'] = $region_array[$order['district']]; //收件人-区/县
$lable_box['t_customer_tel'] = $order['tel']; //收件人-电话
$lable_box['t_customer_mobel'] = $order['mobile']; //收件人-手机
$lable_box['t_customer_post'] = $order['zipcode']; //收件人-邮编
$lable_box['t_customer_address'] = $order['address']; //收件人-详细地址
$lable_box['t_customer_name'] = $order['c**ignee']; //收件人-姓名

$gmtime_utc_temp = gmtime(); //获取 UTC 时间戳
$lable_box['t_year'] = date('Y', $gmtime_utc_temp); //年-当日日期
$lable_box['t_months'] = date('m', $gmtime_utc_temp); //月-当日日期
$lable_box['t_day'] = date('d', $gmtime_utc_temp); //日-当日日期

$lable_box['t_order_no'] = $order['order_sn']; //订单号-订单
$lable_box['t_order_postscript'] = $order['postscript']; //备注-订单
$lable_box['t_order_best_time'] = $order['best_time']; //送货时间-订单
$lable_box['t_pigeon'] = '√'; //√-对号
$lable_box['t_custom_content'] = ''; //自定义内容