解決いたしました。
何がどうなったのかわからないのですが、
SC_Helper_Delivery_Ex.phpを参考サイト通り
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
require_once CLASS_REALDIR . 'helper/SC_Helper_Delivery.php';
/**
* 配送方法を管理するヘルパークラス(拡張).
*
* LC_Helper_Delivery をカスタマイズする場合はこのクラスを編集する.
*
* @package Helper
* @author pineray
* @version $Id:$
*/
class SC_Helper_Delivery_Ex extends SC_Helper_Delivery
{
//put your code here
#メール便対応商品
public function getList($product_type_id,$mail_delivery_available=true) {
$mail_deliv_id=20;
$objQuery = & SC_Query_Ex::getSingletonInstance();
$objQuery->setOrder('rank DESC');
$where='product_type_id = ? AND del_flg = 0';
$arrval=array($product_type_id);
if(!$mail_delivery_available){
$where.=' AND deliv_id !=?';
$arrval[]=$mail_deliv_id;
}
return $objQuery->select('*', 'dtb_deliv', $where ,$arrval );
}
}
上記のような記述とし、
SC_Helper_Purchase_Ex.phpを
<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
require_once CLASS_REALDIR . 'helper/SC_Helper_Purchase.php';
/**
* 商品購入関連のヘルパークラス(拡張).
*
* LC_Helper_Purchase をカスタマイズする場合はこのクラスを編集する.
*
* @package Helper
* @author Kentaro Ohkouchi
* @version $Id: SC_Helper_Purchase_Ex.php 22856 2013-06-08 07:35:27Z Seasoft $
*/
class SC_Helper_Purchase_Ex extends SC_Helper_Purchase
{
#メール便対応商品
function checkMailDeliverAvailable($productTypeId, &$objCartSession) {
$available = false;
// カート内の情報を取得
$items = $objCartSession->getCartList($productTypeId);
if (count(array_keys($items))) {
$available = true;
foreach (array_keys($items) as $key) {
$item = & $items[$key];
$product = & $item['productsClass'];
if ($product['mail_deliver_enabled'] == MAIL_DELIVER_ENABLED) {
continue;
} else {
$available = false;
}
}
}
return $available;
}
}
上記のようにしましたところ、
正常に動作いたしておりました。
全くどの部分での不具合だったのか、
どの部分で改善したのかがわからないのが納得いかないのですが、
結果、
メール便のみカートにある場合、メール便を表示、
宅急便も混ざっている場合、メール便非表示、
という状態とすることができました。
yuh様には、長期間に渡り、
本当に、本当に、細かいところまで親切にお教えいただき、
大変勉強になり、メール便対応サイトにもすることができ、
感謝してもしきれないほどです。
本当に、本当に、ありがとうございました。
本番サイトへ移行し、
問題が無ければ、解決済みとさせていただきます。