Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» ecshop打印快递单不显示收货人省市区的解决办法_362
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: ecshop打印快递单不显示收货人省市区的解决办法_362
cshiji003
新警察
UID 346234
Digest Posts 0
Credits 8
Posts 2
点点分 8
Reading Access 10
Registered 2016-9-9
Status Offline
#1
Post at 2016-9-26 08:46
Profile
|
Site
|
Blog
|
P.M.
ecshop打印快递单不显示收货人省市区的解决办法_362
ecshop打印快递单不显示收货人省市区的解决办法
ecshop打印快递单不显示收货人省市区的解决办法
大家有时候会遇到打印订单报错,原因是没有设置网店地址快递单便无法打印
模板堂给大家介绍一下打印快递单不显示收货人省市区的解决办法:
方法1.打开/admin/order.php文件
搜索以下代码:
$region = $db->getAll("SELECT region_id, region_name FROM " . $ecs->table("region") . " WHERE region_id IN ($region_id)");
修改为:
$region = $db->getAll("SELECT region_id, region_name FROM " . $ecs->table("region"));
这样问题就解决了。按照官方原来的写法,意思是只有当收货人跟本网店在同一个省市的时候才会显示出来。你们可以试一下,在网店设置中将自己的网店地址写成跟收货人一样的时候,再去打印快递单,就会显示出省市了。
方法2.打开/admin/order.php文件
搜索以下代码:
$region_id .= !empty($_CFG['shop_city']) ? $_CFG['shop_city'] . ',' : '';
在下面新添加以下代码:
$region_id .= !empty($order['province']) ? $order['province'] . ',' : '';$region_id .= !empty($order['city']) ? $order['city'] . ',' : '';$region_id .= !empty($order['district']) ? $order['district'] . ',' : '';
我们建议采用第二种方法
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 00:10
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.020863 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats