前段遇见个客户需要,要修改购物流程中的地区下拉框默认为广东深圳那边的,后来就按图索骥的修改了一下,现在给大家分享下我使用的版本: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
人生没有彩排,只有现场直播,所以每一件事都要努力做得最好