广州传奇网络
地址:广州市天河区东圃大马路富华楼C座
电话:13808825895
QQ:1564443073
ecshop收货地址设置默认地区的修改方法
前段遇见个客户需要,要修改购物流程中的地区下拉框默认为广东深圳那边的,后来就按图索骥的修改了一下,现在给大家分享下
我使用的版本:ecshop2.7.2
修改flow.php大概357行左右
$city_list[$region_id] = get_regions(2, $consignee['province']);
$district_list[$region_id] = get_regions(3, $consignee['city']);
为
$city_list[$region_id] = get_regions(2, 6); //6为广东,意为加载广东的城市
$district_list[$region_id] = get_regions(3, 77); //77为深圳,意为加载深圳的县市。
修改consignee.lbi
{if $consignee.province eq $province.region_id}selected{/if}
为
{if $consignee.province eq $province.region_id or $province.region_id eq 6}selected{/if}//6为广东省的id