本当にありがとうございます!
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が表示されます。
それ以外の表示は見られませんでした。
はじめから見直しておりましたが、再び行き詰まりまってしまいました。
毎度毎度、簡潔に記載ができずかなりの長文となってしまい
本当に申し訳ございません。