- Timestamp:
- 2010/08/06 14:52:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r18701 r18777 86 86 $this->tpl_uniqid = $uniqid; 87 87 88 //ダウンロード商品判定 89 $this->cartdown = $objDb->chkCartDown($objCartSess); 90 88 91 // 会員ログインチェック 89 92 if($this->objCustomer->isLoginSuccess()) { … … 91 94 $this->tpl_user_point = $this->objCustomer->getValue('point'); 92 95 //戻り先URL 93 $this->tpl_back_url = URL_DELIV_TOP; 96 if ($this->cartdown == 2) { 97 // ダウンロード商品のみの場合はカート画面へ戻る 98 $this->tpl_back_url = URL_CART_TOP; 99 } else { 100 $this->tpl_back_url = URL_DELIV_TOP; 101 } 94 102 } else { 95 103 $this->tpl_back_url = URL_SHOP_TOP . "?from=nonmember"; … … 203 211 $this->tpl_uniqid = $uniqid; 204 212 213 //ダウンロード商品判定 214 $this->cartdown = $objDb->chkCartDown($objCartSess); 215 205 216 // 会員ログインチェック 206 217 if($this->objCustomer->isLoginSuccess(true)) { … … 236 247 // 正常な推移であることを記録しておく 237 248 $objSiteSess->setRegistFlag(); 238 $this->sendRedirect(MOBILE_URL_SHOP_TOP, true); 249 if ($this->cartdown == 2) { 250 // ダウンロード商品のみの場合はカート画面へ戻る 251 $this->sendRedirect($this->getLocation(MOBILE_URL_CART_TOP), true); 252 } else { 253 $this->sendRedirect(MOBILE_URL_SHOP_TOP, true); 254 } 239 255 exit; 240 256 } 257 } 258 259 // ダウンロード商品のみで、モードがお届け日時指定の場合はモードを変更 260 if ($this->cartdown == 2 && $_POST['mode'] == 'deliv_date') { 261 $_POST['mode'] = 'confirm'; 241 262 } 242 263 … … 341 362 $objQuery = new SC_Query(); 342 363 $objQuery->setOrder("rank DESC"); 364 365 //削除されていない支払方法を取得 366 $where = "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "; 367 //ダウンロード商品の有無判定 368 if($this->cartdown != 0){ 369 //ダウンロード商品を含む場合は、クレジット決済以外は選択できない。 370 $where .= "AND payment_id = " . CREDIT_PAYMENT; 371 } 372 343 373 // 削除されていない支払方法を取得 344 $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", "del_flg = 0 AND deliv_id IN (SELECT deliv_id FROM dtb_deliv WHERE del_flg = 0) "); 374 $arrRet = $objQuery->select("payment_id, payment_method, rule, upper_rule, note, payment_image", "dtb_payment", $where); 375 345 376 // 配列初期化 346 377 $data = array(); 347 378 // 選択可能な支払方法を判定 348 379 foreach($arrRet as $data) { 380 //ダウンロード販売に対する注意追加 381 if($this->cartdown != 0){ 382 $data['payment_method'] = $data['payment_method'] . " (ダウンロード商品を含む場合、クレジット決済のみ選択可能です)"; 383 } 349 384 // 下限と上限が設定されている 350 385 if (strlen($data['rule']) != 0 && strlen($data['upper_rule']) != 0) {
Note: See TracChangeset
for help on using the changeset viewer.