ecshop 去掉配送方式

模板:在flow.dwt里的html去掉


  <!--{if $total.real_goods_count neq 0}-->
        <div class="colbox colpd">
          <h3>配送方式</h3>
          <div class="colboxcontent">
            <table border="0" cellspacing="0" class="styletable">
              <tr>
                <th width="5">&nbsp;</th>
                <th width="100">{$lang.name}</th>
                <th width="400">{$lang.describe}</th>
                <th width="100">{$lang.fee}</th>
                <th width="80">{$lang.free_money}</th>
                <th width="80">{$lang.insure_fee}</th>
              </tr>
              <!-- {foreach from=$shipping_list item=shipping key=key} 循环配送方式 -->
              <tr>
                <td>
                  <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}" onclick="selectShipping(this)" id="shipping{$key}" />
                </td>
                <td><label for="shipping{$key}">{$shipping.shipping_name}</label></td>
                <td>{$shipping.shipping_desc}</td>
                <td>{$shipping.format_shipping_fee}</td>
                <td>{$shipping.free_money}</td>
                <td>
                  <!-- {if $shipping.insure neq 0} -->
                  {$shipping.insure_formated}
                  <!-- {else} -->
                  {$lang.not_support_insure}
                  <!-- {/if} -->
                </td>
              </tr>
              <!-- {/foreach} 循环配送方式 -->
              <tr>
                <td colspan="6" align="right">
                  <label for="ECS_NEEDINSURE" class="textStrong">
                  <input name="need_insure" type="checkbox"  onclick="selectInsure(this.checked)" value="1"{if $order.need_insure} checked="checked"{/if}{if $insure_disabled} disabled="disabled"{/if} id="ECS_NEEDINSURE"  />
                  {$lang.need_insure}
                  </label>
                </td>
              </tr>
            </table>
          </div>
        </div><!-- /colbox -->
        <!-- {else} -->
        <input name = "shipping" type="radio" value = "-1" checked="checked" style="display:none" />
        <!-- {/if} -->

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
JS部分

找到js資料夾裡面的shopping_flow

下列紅色代表配送檢查和警示
藍色代表支付

如果都取消
當然不會有限制
但會出現一個問題
如果沒有選擇的話按結帳
網頁會出現錯誤
但還是會有訂單進來
只是客人會以為沒有訂購成功

建議把紅色的部份刪掉就好


// 检查是否选择了支付配送方式
  for (i = 0; i < frm.elements.length; i ++ )
  {
    if (frm.elements.name == 'shipping' && frm.elements.checked)
    {
      shippingSelected = true;
    }
    if (frm.elements.name == 'payment' && frm.elements.checked)
    {
      paymentSelected = true;
    }
  }
  if ( ! shippingSelected)
  {
    alert(flow_no_shipping);
    return false;
  }
  if ( ! paymentSelected)
  {
    alert(flow_no_payment);
    return false;
  }

你可能感兴趣的:(html)