Changeset 17684 for branches/version-2
- Timestamp:
- 2008/11/06 15:42:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/pages/shopping/LC_Page_Shopping_Deliv.php
r17653 r17684 155 155 } elseif($_POST['deliv_check'] >= 1) { 156 156 if (SC_Utils_Ex::sfIsInt($_POST['deliv_check'])) { 157 $objQuery = new SC_Query(); 158 $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['deliv_check'])); 159 if ($deliv_count != 1) { 160 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 161 } 162 157 163 // 登録済みの別のお届け先を受注一時テーブルに書き込む 158 164 $this->lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['deliv_check']); … … 335 341 if ($_POST['deli'] != "") { 336 342 if (SC_Utils_Ex::sfIsInt($_POST['other_deliv_id'])) { 343 $objQuery = new SC_Query(); 344 $deliv_count = $objQuery->count("dtb_other_deliv","customer_id=? and other_deliv_id = ?" ,array($objCustomer->getValue('customer_id'), $_POST['other_deliv_id'])); 345 if ($deliv_count != 1) { 346 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 347 } 337 348 // 登録済みの別のお届け先を受注一時テーブルに書き込む 338 349 $this->lfRegistOtherDelivData($uniqid, $objCustomer, $_POST['other_deliv_id']); … … 348 359 } 349 360 break; 350 351 /*352 // 別のお届け先を指定353 case 'new_addr':354 // 入力値の変換355 $this->objFormParam->convParam();356 $this->arrErr = lfCheckError($arrRet);357 // 入力エラーなし358 if(count($this->arrErr) == 0) {359 // DBへお届け先を登録360 lfRegistNewAddrData($uniqid, $objCustomer);361 // 正常に登録されたことを記録しておく362 $objSiteSess->setRegistFlag();363 // お支払い方法選択ページへ移動364 header("Location: " . URL_SHOP_PAYMENT);365 exit;366 }367 break;368 */369 361 370 362 // 前のページに戻る
Note: See TracChangeset
for help on using the changeset viewer.