オープンソースの販売サイト構築ソフト EC-CUBE についてのメモ。

会員を送料無料とする

構成情報

  • EC-CUBE 2.3.3-comu r17971

ファイル

data/class_extends/helper_extends/SC_Helper_DB_Ex.php

class SC_Helper_DB_Ex extends SC_Helper_DB {
 
    function sfTotalConfirm($arrData, &$objPage, &$objCartSess, $objCustomer = "") {
        $arrData = parent::sfTotalConfirm($arrData, $objPage, $objCartSess, $objCustomer);
        if ($objCustomer != "" && $objCustomer->isLoginSuccess()) {
            $arrData['total'] -= $arrData['deliv_fee'];
            $arrData['payment_total'] -= $arrData['deliv_fee'];
            $arrData['deliv_fee'] = 0;
        }
        return $arrData;
    }
}

r18320 用 (未テスト:!:)

class SC_Helper_DB_Ex extends SC_Helper_DB {
 
    function sfTotalConfirm($arrData, &$objPage, &$objCartSess, $dummy1 = null, $objCustomer = "") {
        $arrData = parent::sfTotalConfirm($arrData, $objPage, $objCartSess, null, $objCustomer);
        if ($objCustomer != "" && $objCustomer->isLoginSuccess()) {
            $arrData['total'] -= $arrData['deliv_fee'];
            $arrData['payment_total'] -= $arrData['deliv_fee'];
            $arrData['deliv_fee'] = 0;
        }
        return $arrData;
    }
}
拡張/会員送料無料.txt · 最終更新: 2009/09/25 17:48 by seasoft
© 2008-2021 Seasoft.