Changeset 17739


Ignore:
Timestamp:
2008/12/30 14:34:15 (15 years ago)
Author:
Seasoft
Message:

送料計算を拡張クラスで柔軟にカスタマイズしやすいようにリファクタリング

関連フォーラム
 http://xoops.ec-cube.net/modules/newbb/reply.php?forum=10&post_id=12480

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/helper/SC_Helper_DB.php

    r17557 r17739  
    14161416     * @return string 指定の都道府県, 支払い方法の配送料金 
    14171417     */ 
    1418     function sfGetDelivFee($pref, $payment_id = "") { 
     1418    function sfGetDelivFee($arrData) { 
     1419        $pref = $arrData['deliv_pref']; 
     1420        $payment_id = is_set($arrData['payment_id']) ? $arrData['payment_id'] : ""; 
     1421 
    14191422        $objQuery = new SC_Query(); 
    14201423 
     
    14861489        if (OPTION_DELIV_FEE == 1) { 
    14871490            // 送料の合計を計算する 
    1488             $arrData['deliv_fee'] 
    1489                 += $this->sfGetDelivFee($arrData['deliv_pref'], 
    1490                                            $arrData['payment_id']); 
    1491  
     1491            $arrData['deliv_fee'] += $this->sfGetDelivFee($arrData); 
    14921492        } 
    14931493 
Note: See TracChangeset for help on using the changeset viewer.