欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

ecshop隐藏配送方式

shiping1 的头像
首先登陆ecshop后台 点击进入配送方式选项 只保留一个配送方式 其他的全部卸载

然后打开模板文件目录下的flow.dwt文件

搜索

<div class="flowBox">
    <h6><span>{$lang.shipping_method}</span></h6>

修改为

<div class="flowBox" style="display:none">
    <h6><span>{$lang.shipping_method}</span></h6>

搜索

<input name="shipping" type="radio" value="{$shipping.shipping_id}" {if $order.shipping_id eq $shipping.shipping_id}checked="true"{/if} supportCod="{$shipping.support_cod}" insure="{$shipping.insure}" onload="selectShipping(this)" checked="checked" />

修改为

<input id="shipping" name="shipping" type="radio" value="{$shipping.shipping_id}" {if $order.shipping_id eq $shipping.shipping_id}checked="true"{/if} supportCod="{$shipping.support_cod}" insure="{$shipping.insure}" onload="selectShipping(this)" checked="checked" />

修改完成之后 在文件底部加入

<script>
onload=selectShipping(document.getElementById('shipping'));
</script>

结束后清除缓存尝试

 

普通分类: