服务报价 | 域名主机 | 网络营销 | 软件工具| [加入收藏]
 热线电话: #
当前位置: 主页 > php教程 > ecshop教程 >

ecshop详细页增加运费查询(3)

时间:2011-07-23 19:46来源:未知 作者:最模板 点击:
4:goods.dwt增加一代码 li {insert_scripts files='utils.js,transport.js,region.js,shopping_flow.js'} strong 运费查询:/strongselect name=country id=selCountries_{$sn} onchange=region.changed(t

4:goods.dwt增加一代码

  <li>

        {insert_scripts files='utils.js,transport.js,region.js,shopping_flow.js'}

          

<strong> 运费查询:</strong><select name="country" id="selCountries_{$sn}" onchange="region.changed(this, 1, 'selProvinces_{$sn}');" style="border:1px solid #ccc;">

        <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}');" style="border:1px solid #ccc;">

        <option value="0">{$lang.please_select}{$name_of_region[1]}</option>

        

      </select>

      <select name="city" id="selCities_{$sn}" onchange="region.changed(this, 3, 'selDistricts_{$sn}');get_shipping_list(forms['ECS_FORMBUY'],{$goods.goods_id});" style="border:1px solid #ccc;">

        <option value="0">{$lang.please_select}{$name_of_region[2]}</option>

       

      </select>

      <select name="district" id="selDistricts_{$sn}" {if !$district_list.$sn}style="display:none"{/if} style="border:1px solid #ccc;">

        <option value="0">{$lang.please_select}{$name_of_region[3]}</option>

       

      </select>

 </li>

 <li id="show_ship" style="display:none"></li>

 

 

5:library增加goods_total.lbi文件

 

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

{insert_scripts files='transport.js,utils.js'}

<div id="ECS1">

<table>

{if $list}

<tr><td>名称</td><td>运费</td></tr>

{foreach from = $list item = item}

<tr><td>{$item.shipping_name}</td><td>{$item.format_shipping_fee}</td></tr>

{/foreach}

{/if}

</table>

</div>

本文章最模板原创,转载请注明网址!

 

 

(责任编辑:最模板)
顶一下
(7)
63.6%
踩一下
(4)
36.4%
------分隔线----------------------------