検索
ホームページCMS チュートリアルECShopECSHOPでの配送方法のキャンセル方法

ecshop で配送方法をキャンセルする方法: 1. 「flow.dwt」ファイルを見つけて開き、「.」を削除します。 .< ;!-- {/if} -->" code; 2. 「js/shopping_flow.js」の「checkOrderForm(frm)」を「if (document.getElementById(...)」に変更します。

ECSHOPでの配送方法のキャンセル方法

このチュートリアルの動作環境: Windows 10 システム、ecshop バージョン 2.7.3、DELL G3 コンピューター

配信のキャンセル方法ECSHOP のメソッド?

ECSHOP は配信メソッドを削除します

2.7.3 のデフォルト バージョンを例として取り上げます

1. このセクションを削除しますflow.dwt

<!--{if $total.real_goods_count neq 0}-->
        <div class="colbox colpd">
          <h3 id="配送方式">配送方式</h3>
          <div class="colboxcontent">
            <table border="0" cellspacing="0" class="styletable">
              <tr>
                <th width="5"> </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}" οnclick="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"  οnclick="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} -->

2. js/shopping_flow.js の checkOrderForm(frm) を

function checkOrderForm(frm)
{
 
  // 检查用户输入的余额
  if (document.getElementById("ECS_SURPLUS"))
  {
    var surplus = document.getElementById("ECS_SURPLUS").value;
    var error   = Utils.trim(Ajax.call(&#39;flow.php?step=check_surplus&#39;, &#39;surplus=&#39; + surplus, null, &#39;GET&#39;, &#39;TEXT&#39;, false));
 
    if (error)
    {
      try
      {
        document.getElementById("ECS_SURPLUS_NOTICE").innerHTML = error;
      }
      catch (ex)
      {
      }
      return false;
    }
  }
 
  // 检查用户输入的积分
  if (document.getElementById("ECS_INTEGRAL"))
  {
    var integral = document.getElementById("ECS_INTEGRAL").value;
    var error    = Utils.trim(Ajax.call(&#39;flow.php?step=check_integral&#39;, &#39;integral=&#39; + integral, null, &#39;GET&#39;, &#39;TEXT&#39;, false));
 
    if (error)
    {
      return false;
      try
      {
        document.getElementById("ECS_INTEGRAL_NOTICE").innerHTML = error;
      }
      catch (ex)
      {
      }
    }
  }
  frm.action = frm.action + &#39;?step=done&#39;;
  return true;
}

3 に変更します。 flow.php 内 if ($_REQUEST['step'] == '

if ($order[&#39;order_amount&#39;] > 0)
    {
        $payment = payment_info($order[&#39;pay_id&#39;]);
 
        include_once(&#39;includes/modules/payment/&#39; . $payment[&#39;pay_code&#39;] . &#39;.php&#39;);
 
        $pay_obj    = new $payment[&#39;pay_code&#39;];
 
        $pay_online = $pay_obj->get_code($order, unserialize_config($payment[&#39;pay_config&#39;]));
 
        $order[&#39;pay_desc&#39;] = $payment[&#39;pay_desc&#39;];
 
        $smarty->assign(&#39;pay_online&#39;, $pay_online);
    }

if(isset($is_real_good))
    {
        $sql="SELECT shipping_id FROM " . $ecs->table(&#39;shipping&#39;) . " WHERE shipping_id=".$order[&#39;shipping_id&#39;] ." AND enabled =1"; 
        if(!$db->getOne($sql))
        {
           show_message($_LANG[&#39;flow_no_shipping&#39;]);
        }
    }

4 をコメントアウトします。flow.dwt 内の のテキストは次のように定義できます。

推奨学習:「ECShop チュートリアル

以上がECSHOPでの配送方法のキャンセル方法の詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

声明
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。

ホットAIツール

Undresser.AI Undress

Undresser.AI Undress

リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover

AI Clothes Remover

写真から衣服を削除するオンライン AI ツール。

Undress AI Tool

Undress AI Tool

脱衣画像を無料で

Clothoff.io

Clothoff.io

AI衣類リムーバー

AI Hentai Generator

AI Hentai Generator

AIヘンタイを無料で生成します。

ホットツール

SublimeText3 Linux 新バージョン

SublimeText3 Linux 新バージョン

SublimeText3 Linux 最新バージョン

SublimeText3 Mac版

SublimeText3 Mac版

神レベルのコード編集ソフト(SublimeText3)

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

強力な PHP 統合開発環境

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

EditPlus 中国語クラック版

EditPlus 中国語クラック版

サイズが小さく、構文の強調表示、コード プロンプト機能はサポートされていません