バージョン選択

フォーラム

メニュー

オンライン状況

23 人のユーザが現在オンラインです。 (12 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 23
もっと...

サイト内検索

質問 > フロント機能 > 2.13系メール便の対応について

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
harusame
投稿日時: 2014/8/4 18:56
対応状況: −−−
半人前
登録日: 2014/7/30
居住地: 奈良
投稿: 27
Re: 2.13系メール便の対応について
本当にありがとうございます!

SC_CartSession内に
            'mail_deliver_enabled'=> true,

を追加致しました。


その後、
順序通り修正しております。

●/data/Smarty/templates/admin/products/product.tpl内に
        <tr>
            <th>メール便対応</th>
            <td>
                <label>
                <input type="checkbox" name="mail_deliver_enabled" value="1" <!--{if $arrForm.mail_deliver_enabled == $smarty.const.MAIL_DELIVER_ENABLED}-->checked<!--{/if}--> onclick="fnCheckStockLimit('<!--{$smarty.const.DISABLED_RGB}-->');"/>
                </label>
            </td>
        </tr>

上記チェックボックスを追加しました。


●/data/Smarty/templates/admin/products/confirm.tpl内に
            <tr>
                <th>メール便対応</th>
                <td>
                    <!--{if $arrForm.mail_deliver_enabled == 1}-->○<!--{else}-->×<!--{/if}-->
                </td>
            </tr>

上記確認項目も追加しました。

CSVダウンロード設定用テーブル(dtb_csv)にカラム増やし、
設定は完了したかと思われます。


その後、
EC-CUBE メール便対応フラグを利用して表示をカスタマイズ(初級編:商品詳細画面)
http://tech.bandersnatch.jp/318
上記へ進めていき、


●/data/Smarty/templates/default/products/detail.tpl内に、
参考サイト通り下記を追加したのですが、どの商品を確認しても「送料無料」と表示されてしまいます…。
<!--{if $arrProduct.price02_min|sfCalcIncTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule >= $free_rule}-->
	<div class="deliv_explain">送料無料</div>
<!--{else}-->
<!--{if $arrProduct.mail_deliver_enabled == $smarty.const.MAIL_DELIVER_ENABLED}-->
	<div class="deliv_explain">メール便対象品です(送料無料)</div>
<!--{else}-->
<!--{/if}-->
<!--{/if}-->


しかたなく、下記としました。
                <!--▼商品ステータス-->
                <!--{assign var=ps value=$productStatus[$tpl_product_id]}-->
                <!--{if count($ps) > 0}-->
                    <ul class="status_icon clearfix">
                        <!--{foreach from=$ps item=status}-->
                        <li>
                            <!--{if $arrProduct.mail_deliver_enabled == $smarty.const.MAIL_DELIVER_ENABLED}-->
                            <img src="<!--{$TPL_URLPATH}-->/img/icon/icon_yamato_mailbin.gif" alt="メール便アイコン" />
                            <!--{/if}-->
                            <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="80" height="17" alt="<!--{$arrSTATUS[$status]}-->" id="icon<!--{$status}-->" />
                        </li>
                        <!--{/foreach}-->
                    </ul>
                <!--{/if}-->
                <!--▲商品ステータス-->

メール便商品のみ、商品ステータス部分にメール便アイコンが表示されるようになりました。
商品一覧ページにも同じカスタマイズをし、
メール便商品は一覧、詳細ともにステータス部分にアイコン表示されるようになりました。

そのまま
EC-CUBE メール便対応フラグを利用して表示をカスタマイズ(中級編:カート画面)
http://tech.bandersnatch.jp/318
上記へ進めていき、

●/data/class/pages/cart/LC_Page_Cart.php内に、


        $this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData();
        $totalIncTax = 0;
        foreach ($this->cartKeys as $key) {
            // カート集計処理
            $this->tpl_message .= $objCartSess->checkProducts($key);
            $this->tpl_total_inctax[$key] = $objCartSess->getAllProductsTotal($key);
            $totalIncTax += $this->tpl_total_inctax[$key];
            $this->tpl_total_tax[$key] = $objCartSess->getAllProductsTax($key);
            // ポイント合計
            $this->tpl_total_point[$key] = $objCartSess->getAllProductsPoint($key);

            $this->arrData[$key] = $objCartSess->calculate($key, $objCustomer);

            // 送料無料チェック
            $this->arrData[$key]['is_deliv_free'] = $objCartSess->isDelivFree($key);
            $this->arrData[$key]['mail_deliv_available'] = $objPurchase->checkMailDeliverAvailable($key, $objCartSess);

            // 送料無料までの金額を計算
            $this->tpl_deliv_free[$key] = $this->arrInfo['free_rule'] - $this->tpl_total_inctax[$key];
        }

上記「送料無料チェック」部分に追加し、

●/data/Smarty/templates/default/cart/index.tpl内に、
<!--{if count($cartKeys) > 1}-->
<h4></h4>

  <!--{$arrProductType[$key]}-->:

  <!--{if $arrInfo.free_rule > 0}-->
    <!--{if !$arrData[$key].is_deliv_free}-->
      <!--{if $arrData[$key].mail_deliv_available}-->
<div>※※ 1-1メール便のご指定なら送料無料 ※※</div>
      <!--{else}-->
<div>※※ 1-2指定金額を越えてない時 ※※</div>
<div class="cart_deliv_fee_message">あと「<span class="price"><!--{$tpl_deliv_free[$key]|number_format}-->円</span>」で送料無料です!!</div>
      <!--{/if}-->
    <!--{else}-->
<div>※※ 1-3指定金額以上で送料無料 ※※</div>
    <!--{/if}-->
  <!--{/if}-->

<!--{else}-->

  <!--{if $arrInfo.free_rule > 0}-->
    <!--{if !$arrData[$key].is_deliv_free}-->
      <!--{if $arrData[$key].mail_deliv_available}-->

<div>※※ 2-1メール便のご指定なら送料無料 ※※<br />
※代金引換ではメール便はご利用いただけません</div>
      <!--{else}-->
<div>※※ 2-2指定金額を越えてない時 ※※</div>
<div class="cart_deliv_fee_message">あと「<span class="price"><!--{$tpl_deliv_free[$key]|number_format}-->円</span>」で送料無料です!!</div>
      <!--{/if}-->
    <!--{else}-->
<div>※※ 2-3指定金額以上で送料無料 ※※</div>
    <!--{/if}-->
  <!--{/if}-->

<!--{/if}-->

と記載してみたのですが、
メール便商品をカートへ入れてもメール便の表示が出ません。
どの商品パターンでカートへ入れても、同じでした。
常に2-2が表示され、無料金額を超えると2-3が表示されます。
それ以外の表示は見られませんでした。

はじめから見直しておりましたが、再び行き詰まりまってしまいました。
毎度毎度、簡潔に記載ができずかなりの長文となってしまい
本当に申し訳ございません。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   2.13系メール便の対応について harusame 2014/7/30 17:05
     Re: 2.13系メール便の対応について bucchi 2014/8/3 14:21
       Re: 2.13系メール便の対応について harusame 2014/8/3 18:11
         Re: 2.13系メール便の対応について yuh 2014/8/3 20:59
           Re: 2.13系メール便の対応について harusame 2014/8/4 11:42
             Re: 2.13系メール便の対応について yuh 2014/8/4 13:50
               Re: 2.13系メール便の対応について harusame 2014/8/4 17:25
                 Re: 2.13系メール便の対応について yuh 2014/8/4 17:35
                 » Re: 2.13系メール便の対応について harusame 2014/8/4 18:56
                     Re: 2.13系メール便の対応について yuh 2014/8/4 21:35
                       Re: 2.13系メール便の対応について harusame 2014/8/5 15:09
                         Re: 2.13系メール便の対応について yuh 2014/8/5 15:33
                           Re: 2.13系メール便の対応について harusame 2014/8/5 16:00
                             Re: 2.13系メール便の対応について yuh 2014/8/5 16:10
                               Re: 2.13系メール便の対応について harusame 2014/8/5 17:07
                                 Re: 2.13系メール便の対応について yuh 2014/8/5 17:36
                                   Re: 2.13系メール便の対応について harusame 2014/8/5 19:01
                                     Re: 2.13系メール便の対応について yuh 2014/8/5 21:36
                                       Re: 2.13系メール便の対応について harusame 2014/8/5 23:47
                                         Re: 2.13系メール便の対応について yuh 2014/8/5 23:58
                                           Re: 2.13系メール便の対応について harusame 2014/8/9 10:39
                                             Re: 2.13系メール便の対応について yuh 2014/8/9 19:12
                                               Re: 2.13系メール便の対応について harusame 2014/8/10 11:06
                                                 Re: 2.13系メール便の対応について harusame 2014/8/10 11:34
                                                   Re: 2.13系メール便の対応について harusame 2014/8/10 11:50
                                                     Re: 2.13系メール便の対応について yuh 2014/8/10 12:17
                                                       Re: 2.13系メール便の対応について harusame 2014/8/10 12:28
                                                         Re: 2.13系メール便の対応について harusame 2014/8/10 13:32
                                                           Re: 2.13系メール便の対応について yuh 2014/8/10 13:44
                                                             Re: 2.13系メール便の対応について harusame 2014/8/10 14:04
                                                               Re: 2.13系メール便の対応について harusame 2014/12/16 15:53

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,482名です
総投稿数は110,100件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1655
8
red
1570
9
mcontact
1306
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.