Changeset 18782 for branches/version-2_5-dev/data/class/pages/shopping
- Timestamp:
- 2010/08/12 13:26:14 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r18777 r18782 364 364 365 365 //削除されていない支払方法を取得 366 $arrval = null; 366 367 $where = "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "; 368 367 369 //ダウンロード商品の有無判定 368 370 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; 371 383 } 372 384 373 385 // 削除されていない支払方法を取得 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); 375 387 376 388 // 配列初期化 … … 380 392 //ダウンロード販売に対する注意追加 381 393 if($this->cartdown != 0){ 382 $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、 クレジット決済のみ選択可能です)";394 $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、オンライン決済のみ選択可能です)"; 383 395 } 384 396 // 下限と上限が設定されている
Note: See TracChangeset
for help on using the changeset viewer.
