ECSHOP 怎么去掉配送区域

fieldset{padding:10px;}

ECSHOP 如何去掉配送区域

1.在订单确认页面(购物流程),去掉配送区域!

在你的模板文件夹(themes)下找到flow.dwt 文件,例如 themes\default\flow.dwt,搜索找到**ubmit=”return checkC**ignee(this)”,return checkC**ignee(this) 该函数在shipping_flow.js里面,然后到根目录下找到js\shipping_flow.js,搜索函数function checkC**ignee(frm),然后将下面的部分进行注释:??if (frm.elements[‘country’] && frm.elements[‘country’].value == 0)??{? ? msg.push(country_not_null);? ? err = true;??}??if (frm.elements[‘province’] && frm.elements[‘province’].value == 0 && frm.elements[‘province’].length > 1)??{? ? err = true;? ? msg.push(province_not_null);??}??if (frm.elements[‘city’] && frm.elements[‘city’].value == 0 && frm.elements[‘city’].length > 1)??{? ? err = true;? ? msg.push(city_not_null);??}然后这时,如果你在点击提交表单的话,它总是返回到当前页面,无法进行下一步的操作。这时,你需要到flow.php这个文件当中,去掉一部分代码。找到step=checkout,将下面的这段代码去掉,? ? /* 检查收货人信息是否完整 */? ? if (!check_c**ignee_info($c**ignee, $flow_type))? ? {? ?? ???/* 如果不完整则转向到收货人信息填写界面 */? ?? ???ecs_header(“Location: flow.php?step=c**ignee\n”);? ?? ???exit;? ? }或者,到includes/lib_order.php找到这个函数,然后将下面的这段代码去掉,? ?? ???if ($res)? ?? ???{? ?? ?? ?? ?if (empty($c**ignee[‘province’]))? ?? ?? ?? ?{? ?? ?? ?? ?? ? /* 没有设置省份,检查当前国家下面有没有设置省份 */? ?? ?? ?? ?? ? $pro = get_regi**(1, $c**ignee[‘country’]);? ?? ?? ?? ?? ? $res = empty($pro);? ?? ?? ?? ?}? ?? ?? ?? ?elseif (empty($c**ignee[‘city’]))? ?? ?? ?? ?{? ?? ?? ?? ?? ? /* 没有设置城市,检查当前省下面有没有城市 */? ?? ?? ?? ?? ? $city = get_regi**(2, $c**ignee[‘province’]);? ?? ?? ?? ?? ? $res = empty($city);? ?? ?? ?? ?}? ?? ?? ?? ?elseif (empty($c**ignee[‘district’]))? ?? ?? ?? ?{? ?? ?? ?? ?? ? $dist = get_regi**(3, $c**ignee[‘city’]);? ?? ?? ?? ?? ? $res = empty($dist);? ?? ?? ?? ?}? ?? ???}?

?

2.在用户中心,收货地址去掉配送区域。

打开当前模板下的user_transaction.dwt

806-834行

?<tr>???? <td align=”right” bgcolor=”#ffffff”>{$lang.country_province}:</td>???? <td colspan=”3″ align=”left” bgcolor=”#ffffff”>???? <select name=”country” id=”selCountries_{$sn}” onchange=”region.changed(this, 1, ‘selProvinces_{$sn}’)” class=”InputBorder”>?????? <option value=”0″>{$lang.please_select}{$name_of_region[0]}</option>?????? <!– {foreach from=$country_list item=country} –>?????? <option value=”{$country.region_id}” {if $consignee.country eq $country.region_id}selected{/if}>{$country.region_name}</option>?????? <!– {/foreach} –>????? </select>????? <select name=”province” id=”selProvinces_{$sn}” onchange=”region.changed(this, 2, ‘selCities_{$sn}’)”? class=”InputBorder”>?????? <option value=”0″>{$lang.please_select}{$name_of_region[1]}</option>?????? <!– {foreach from=$province_list.$sn item=province} –>?????? <option value=”{$province.region_id}” {if $consignee.province eq $province.region_id}selected{/if}>{$province.region_name}</option>?????? <!– {/foreach} –>????? </select>????? <select name=”city” id=”selCities_{$sn}” onchange=”region.changed(this, 3, ‘selDistricts_{$sn}’)” class=”InputBorder”>?????? <option value=”0″>{$lang.please_select}{$name_of_region[2]}</option>?????? <!– {foreach from=$city_list.$sn item=city} –>?????? <option value=”{$city.region_id}” {if $consignee.city eq $city.region_id}selected{/if}>{$city.region_name}</option>?????? <!– {/foreach} –>????? </select>????? <select name=”district” id=”selDistricts_{$sn}” {if !$district_list.$sn}>?????? <option value=”0″>{$lang.please_select}{$name_of_region[3]}</option>?????? <!– {foreach from=$district_list.$sn item=district} –>?????? <option value=”{$district.region_id}” {if $consignee.district eq $district.region_id}selected{/if}>{$district.region_name}</option>?????? <!– {/foreach} –>????? </select>???? {$lang.require_field} </td>

都懒得写日记来记录,可见内心底对旅行是多么的淡漠。

ECSHOP 怎么去掉配送区域

相关文章:

你感兴趣的文章:

标签云: