Ignore:
Timestamp:
2010/08/12 13:26:14 (16 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 拡張子パラメータ化、オンライン決済のみ対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r18777 r18782  
    364364 
    365365        //削除されていない支払方法を取得 
     366        $arrval = null; 
    366367        $where = "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "; 
     368 
    367369        //ダウンロード商品の有無判定 
    368370        if($this->cartdown != 0){ 
    369             //ダウンロード商品を含む場合は、クレジット決済以外は選択できない。 
    370             $where .= "AND payment_id =  " . CREDIT_PAYMENT; 
     371            //ダウンロード商品を含む場合は、オンライン決済以外は選択できない。 
     372            $arrval = explode(",", CREDIT_PAYMENT); 
     373            $tmp_where = ""; 
     374            foreach ($arrval as $val) { 
     375                if($tmp_where == "") { 
     376                    $tmp_where.= "AND payment_id IN ( ?"; 
     377                } else { 
     378                    $tmp_where.= ",? "; 
     379                } 
     380            } 
     381            $tmp_where.= " ) "; 
     382            $where .= $tmp_where; 
    371383        } 
    372384 
    373385        // 削除されていない支払方法を取得 
    374         $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where); 
     386        $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where, $arrval); 
    375387 
    376388        // 配列初期化 
    … …  
    380392            //ダウンロード販売に対する注意追加 
    381393            if($this->cartdown != 0){ 
    382                 $data['payment_method'] = $data['payment_method'] . "  (ダウンロード商品を含む場合、クレジット決済のみ選択可能です)"; 
     394                $data['payment_method'] = $data['payment_method'] . "  (ダウンロード商品を含む場合、オンライン決済のみ選択可能です)"; 
    383395            } 
    384396            // 下限と上限が設定されている 
Note: See TracChangeset for help on using the changeset viewer.