ectouch收货人信息界面配送区域省市采用默认

1.根目录下的flow.php
2.修改ecshop模板文件theme/模版名目录/library/consignee.lbi

1.flow.php

$province_list[$region_id] = get_regions(1, $consignee['country']);
$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, 25);      //25代表上海
$district_list[$region_id] = get_regions(3, 321);     //321代表上海

 

很好,第一个文件修改完毕,至此,你已经完成一半了,下面继续修改第二个文件。

2.theme/模版名目录/library/consignee.lbi
<option value="{$province.region_id}" {if $consignee.province eq $province.region_id}selected{/if}>
修改为
<option value="{$province.region_id}" {if $consignee.province eq $province.region_id or $province.region_id eq 25}selected{/if}>{$province.region_name}</option>

然后
<option value="{$city.region_id}" {if $consignee.city eq $city.region_id}selected{/if}>{$city.region_name}</option>
修改为
<option value="{$city.region_id}" {if $consignee.city eq $city.region_id or $city.region_id eq 321}selected{/if}>{$city.region_name}</option>

posted on 2015-09-12 20:24  YWDJ  阅读(523)  评论(0)    收藏  举报

导航