Ignore:
Timestamp:
2011/01/10 13:59:23 (12 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:19859
bzr:committer:
Kentaro Ohkouchi <nanasess@fsm.ne.jp>
bzr:file-ids:

data/Smarty/templates/default/shopping/deliv.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fshopping%2Fdeliv.tpl
data/Smarty/templates/default/shopping/multiple.tpl multiple.tpl-20110109122547-u3fq5xmi1b4jn5n4-1
data/Smarty/templates/default/shopping/nonmember_input.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fshopping%2Fnonmember_input.tpl
data/Smarty/templates/default/shopping/payment.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fshopping%2Fpayment.tpl
data/class/SC_CartSession.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_CartSession.php
data/class/SC_Customer.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_Customer.php
data/class/helper/SC_Helper_DB.php 15176@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_DB.php
data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/error/LC_Page_Error.php 15141@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Ferror%2FLC_Page_Error.php
data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php 16093@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fmypage%2FLC_Page_Mypage_DeliveryAddr.php
data/class/pages/shopping/LC_Page_Shopping.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping.php
data/class/pages/shopping/LC_Page_Shopping_Confirm.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Confirm.php
data/class/pages/shopping/LC_Page_Shopping_Deliv.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Deliv.php
data/class/pages/shopping/LC_Page_Shopping_Multiple.php lc_page_shopping_mul-20110109122547-u3fq5xmi1b4jn5n4-2
data/class/pages/shopping/LC_Page_Shopping_Payment.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Payment.php
data/class/util/SC_Utils.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Futil%2FSC_Utils.php
data/class_extends/page_extends/shopping/LC_Page_Shopping_Multiple_Ex.php lc_page_shopping_mul-20110109122547-u3fq5xmi1b4jn5n4-3
data/install.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Finstall.php
html/install/sql/create_table_mysql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_mysql.sql
html/install/sql/create_table_pgsql.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fcreate_table_pgsql.sql
html/install/sql/drop_table.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Fdrop_table.sql
html/install/sql/insert_data.sql 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Finstall%2Fsql%2Finsert_data.sql
html/js/site.js site.js-20101208110316-7ungq6kj49bhw4d1-7
html/shopping/multiple.php multiple.php-20110109122547-u3fq5xmi1b4jn5n4-4
html/user_data/packages/default/css/under02.css 16708@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fhtml%2Fuser_data%2Fpackages%2Fdefault%2Fcss%2Funder02.css
bzr:mapping-version:
v4
bzr:merge:

nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
nanasess@fsm.ne.jp-20110110045915-6b02oxleldtyw7ee
bzr:revno:
2589
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/Smarty/templates/default/shopping/deliv.tpl nanasess@fsm.ne.jp-20110109122851-7ox5o3sn0yp5rjpn
data/Smarty/templates/default/shopping/multiple.tpl nanasess@fsm.ne.jp-20110109122851-7ox5o3sn0yp5rjpn
data/Smarty/templates/default/shopping/nonmember_input.tpl nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/Smarty/templates/default/shopping/payment.tpl nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/SC_CartSession.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/SC_Customer.php nanasess@fsm.ne.jp-20110109122851-7ox5o3sn0yp5rjpn
data/class/helper/SC_Helper_DB.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/helper/SC_Helper_Purchase.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/pages/error/LC_Page_Error.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php nanasess@fsm.ne.jp-20110109122851-7ox5o3sn0yp5rjpn
data/class/pages/shopping/LC_Page_Shopping.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/pages/shopping/LC_Page_Shopping_Confirm.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/pages/shopping/LC_Page_Shopping_Deliv.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/pages/shopping/LC_Page_Shopping_Multiple.php nanasess@fsm.ne.jp-20110109122851-7ox5o3sn0yp5rjpn
data/class/pages/shopping/LC_Page_Shopping_Payment.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class/util/SC_Utils.php nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
data/class_extends/page_extends/shopping/LC_Page_Shopping_Multiple_Ex.php nanasess@fsm.ne.jp-20110109122604-8059rgcurt250q06
html/install/sql/create_table_mysql.sql nanasess@fsm.ne.jp-20110109121902-2oqes35heyjm5nlc
html/install/sql/create_table_pgsql.sql nanasess@fsm.ne.jp-20110109121902-2oqes35heyjm5nlc
html/install/sql/drop_table.sql nanasess@fsm.ne.jp-20110109121902-2oqes35heyjm5nlc
html/install/sql/insert_data.sql nanasess@fsm.ne.jp-20110109122604-8059rgcurt250q06
html/js/site.js nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
html/shopping/multiple.php nanasess@fsm.ne.jp-20110109122604-8059rgcurt250q06
html/user_data/packages/default/css/under02.css nanasess@fsm.ne.jp-20110110045555-wppbrefvyq7ccz18
bzr:timestamp:
2011-01-10 13:59:15.388999939 +0900
bzr:user-agent:
bzr2.2.2+bzr-svn1.0.4
svn:original-date:
2011-01-10T04:59:15.389000Z
Message:

#843(複数配送先の指定)

  • とりあえず通常配送が通るように修正
File:
1 edited

Legend:

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

    r19833 r19860  
    8383        $objCookie = new SC_Cookie(); 
    8484        $objDb = new SC_Helper_DB_Ex(); 
     85        $objPurchase = new SC_Helper_Purchase_Ex(); 
    8586        $this->objFormParam = new SC_FormParam();            // フォーム用 
    8687        $this->lfInitParam();                                // パラメータ情報の初期化 
    8788        $this->objFormParam->setParam($_POST);            // POST値の取得 
    8889 
    89         // ユーザユニークIDの取得と購入状態の正当性をチェック 
    90         $uniqid = SC_Utils_Ex::sfCheckNormalAccess($objSiteSess, $objCartSess); 
     90        $uniqid = $objSiteSess->getUniqId(); 
     91        $objPurchase->verifyChangeCart($uniqid, $objCartSess); 
     92 
    9193        $this->tpl_uniqid = $uniqid; 
    9294 
    93         //ダウンロード商品判定 
    94         $this->cartdown = $objDb->chkCartDown($objCartSess); 
     95        $this->cartKey = $objCartSess->getKey(); 
    9596 
    9697        // ログインチェック 
    9798        if($objCustomer->isLoginSuccess()) { 
    98             // すでにログインされている場合 
    99             if ($this->cartdown == 2) { 
     99 
     100            switch ($this->cartKey) { 
     101            // ダウンロード商品の場合は支払方法設定画面に転送 
     102            case PRODUCT_TYPE_DOWNLOAD: 
    100103                // 会員情報の住所を受注一時テーブルに書き込む 
    101                 $objDb->sfRegistDelivData($uniqid, $objCustomer); 
     104                $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer); 
    102105                // 正常に登録されたことを記録しておく 
    103106                $objSiteSess->setRegistFlag(); 
    104                 //カート内が全てダウンロード商品の場合は支払方法設定画面に転送 
    105107                SC_Response_Ex::sendRedirect('payment.php'); 
    106             } else { 
     108                exit; 
     109                break; 
     110 
     111            case PRODUCT_TYPE_NORMAL: 
     112            default: 
    107113                // お届け先設定画面に転送 
    108114                SC_Response_Ex::sendRedirect('deliv.php'); 
    109             } 
    110             exit; 
     115                exit; 
     116            } 
    111117        } 
    112118 
     
    121127        switch($_POST['mode']) { 
    122128        case 'nonmember_confirm': 
    123             $this->lfSetNonMember($this); 
     129            $this->tpl_mainpage = 'shopping/nonmember_input.tpl'; 
     130            $this->tpl_title = 'お客様情報入力'; 
    124131            //非会員のダウンロード商品を含んだ買い物はNG 
    125             if($this->cartdown != 0){ 
    126                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, "ダウンロード商品を含むお買い物は、会員登録が必要です。<br/>お手数ですが、会員登録をお願いします。"); 
     132            if ($this->cartKey == PRODUCT_TYPE_DOWNLOAD) { 
     133                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, 
     134                                             "ダウンロード商品を含むお買い物は、会員登録が必要です。<br/>お手数ですが、会員登録をお願いします。"); 
    127135            } 
    128136            // ※breakなし 
    129137        case 'confirm': 
    130             // 入力値の変換 
    131             $this->objFormParam->convParam(); 
    132             $this->objFormParam->toLower('order_mail'); 
    133             $this->objFormParam->toLower('order_mail_check'); 
    134  
    135138            $this->arrErr = $this->lfCheckError(); 
    136139 
     
    138141            if(count($this->arrErr) == 0) { 
    139142                // DBへのデータ登録 
    140                 $this->lfRegistData($uniqid); 
    141  
     143                $this->lfRegistData($uniqid, $objPurchase, $objCustomer); 
    142144                // 正常に登録されたことを記録しておく 
    143145                $objSiteSess->setRegistFlag(); 
    144146                // お支払い方法選択ページへ移動 
    145                 $this->objDisplay->redirect($this->getLocation(SHOPPING_PAYMENT_URL_PATH)); 
     147                SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URL_PATH); 
    146148                exit; 
    147149            } 
     
    151153        case 'return': 
    152154            // 確認ページへ移動 
    153             $this->objDisplay->redirect($this->getLocation(CART_URL_PATH)); 
     155            SC_Response_Ex::sendRedirect(CART_URL_PATH); 
    154156            exit; 
    155157            break; 
     158 
     159        case 'multiple': 
     160            $this->arrErr = $this->lfCheckError(); 
     161 
     162            // 入力エラーなし 
     163            if(count($this->arrErr) == 0) { 
     164                // DBへのデータ登録 
     165                $this->lfRegistData($uniqid, $objPurchase, $objCustomer); 
     166                // 正常に登録されたことを記録しておく 
     167                $objSiteSess->setRegistFlag(); 
     168 
     169                SC_Response_Ex::sendRedirect("multiple.php"); 
     170                exit; 
     171            } 
     172            // breakなし 
     173 
    156174        case 'nonmember': 
    157             $this->lfSetNonMember($this); 
     175            $this->tpl_mainpage = 'shopping/nonmember_input.tpl'; 
     176            $this->tpl_title = 'お客様情報入力'; 
    158177            //非会員のダウンロード商品を含んだ買い物はNG 
    159             if($this->cartdown != 0){ 
    160                 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, "ダウンロード商品を含むお買い物は、会員登録が必要です。<br/>お手数ですが、会員登録をお願いします。"); 
     178            if ($this->cartKey == PRODUCT_TYPE_DOWNLOAD) { 
     179                SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, $objSiteSess, false, 
     180                                             "ダウンロード商品を含むお買い物は、会員登録が必要です。<br/>お手数ですが、会員登録をお願いします。"); 
    161181            } 
    162182            // ※breakなし 
    163183        default: 
    164184            if(isset($_GET['from']) && $_GET['from'] == 'nonmember') { 
    165                 $this->lfSetNonMember($this); 
    166             } 
    167             // ユーザユニークIDの取得 
    168             $uniqid = $objSiteSess->getUniqId(); 
    169             $objQuery = new SC_Query(); 
    170             $where = "order_temp_id = ?"; 
    171             $arrRet = $objQuery->select("*", "dtb_order_temp", $where, array($uniqid)); 
    172             if (empty($arrRet)) $arrRet = array( 
    173                                                 array('order_email' => "", 
    174                                                       'order_birth' => "")); 
     185                $this->tpl_mainpage = 'shopping/nonmember_input.tpl'; 
     186                $this->tpl_title = 'お客様情報入力'; 
     187            } 
     188            $arrOrderTemp = $objPurchase->getOrderTemp($uniqid); 
     189            if (empty($arrOrderTemp)) $arrOrderTemp = array('order_email' => "", 
     190                                                            'order_birth' => ""); 
    175191 
    176192            // DB値の取得 
    177             $this->objFormParam->setParam($arrRet[0]); 
    178             $this->objFormParam->setValue('order_email02', $arrRet[0]['order_email']); 
    179             $this->objFormParam->setDBDate($arrRet[0]['order_birth']); 
    180             break; 
     193            $this->objFormParam->setParam($arrOrderTemp); 
     194            $this->objFormParam->setValue('order_email02', $arrOrderTemp['order_email']); 
     195            $this->objFormParam->setDBDate($arrOrderTemp['order_birth']); 
    181196        } 
    182197 
     
    279294    function destroy() { 
    280295        parent::destroy(); 
    281     } 
    282  
    283     /* 非会員入力ページのセット */ 
    284     function lfSetNonMember(&$objPage) { 
    285         $objPage->tpl_mainpage = 'shopping/nonmember_input.tpl'; 
    286         $this->tpl_title = 'お客様情報入力'; 
    287296    } 
    288297 
     
    311320        $this->objFormParam->addParam("性別", "order_sex", INT_LEN, "n", array("EXIST_CHECK", "MAX_LENGTH_CHECK", "NUM_CHECK")); 
    312321        $this->objFormParam->addParam("職業", "order_job", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    313         $this->objFormParam->addParam("別のお届け先", "deliv_check", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    314         $this->objFormParam->addParam("お名前(姓)", "deliv_name01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    315         $this->objFormParam->addParam("お名前(名)", "deliv_name02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    316         $this->objFormParam->addParam("お名前(フリガナ・姓)", "deliv_kana01", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    317         $this->objFormParam->addParam("お名前(フリガナ・名)", "deliv_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    318         $this->objFormParam->addParam("郵便番号1", "deliv_zip01", ZIP01_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK")); 
    319         $this->objFormParam->addParam("郵便番号2", "deliv_zip02", ZIP02_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK")); 
    320         $this->objFormParam->addParam("都道府県", "deliv_pref", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
    321         $this->objFormParam->addParam("住所1", "deliv_addr01", MTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    322         $this->objFormParam->addParam("住所2", "deliv_addr02", MTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    323         $this->objFormParam->addParam("電話番号1", "deliv_tel01", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK")); 
    324         $this->objFormParam->addParam("電話番号2", "deliv_tel02", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK")); 
    325         $this->objFormParam->addParam("電話番号3", "deliv_tel03", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK")); 
     322        $this->objFormParam->addParam("別のお届け先", "deliv_check", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), "", false); 
     323        $this->objFormParam->addParam("お名前(姓)", "shipping_name01", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     324        $this->objFormParam->addParam("お名前(名)", "shipping_name02", STEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     325        $this->objFormParam->addParam("お名前(フリガナ・姓)", "shipping_kana01", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     326        $this->objFormParam->addParam("お名前(フリガナ・名)", "shipping_kana02", STEXT_LEN, "KVCa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     327        $this->objFormParam->addParam("郵便番号1", "shipping_zip01", ZIP01_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK")); 
     328        $this->objFormParam->addParam("郵便番号2", "shipping_zip02", ZIP02_LEN, "n", array("NUM_CHECK", "NUM_COUNT_CHECK")); 
     329        $this->objFormParam->addParam("都道府県", "shipping_pref", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK")); 
     330        $this->objFormParam->addParam("住所1", "shipping_addr01", MTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     331        $this->objFormParam->addParam("住所2", "shipping_addr02", MTEXT_LEN, "KVa", array("SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
     332        $this->objFormParam->addParam("電話番号1", "shipping_tel01", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK")); 
     333        $this->objFormParam->addParam("電話番号2", "shipping_tel02", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK")); 
     334        $this->objFormParam->addParam("電話番号3", "shipping_tel03", TEL_ITEM_LEN, "n", array("MAX_LENGTH_CHECK" ,"NUM_CHECK")); 
    326335        $this->objFormParam->addParam("メールマガジン", "mail_flag", INT_LEN, "n", array("MAX_LENGTH_CHECK", "NUM_CHECK"), 1); 
    327336    } 
    328337 
    329338    /* DBへデータの登録 */ 
    330     function lfRegistData($uniqid) { 
    331         $arrRet = $this->objFormParam->getHashArray(); 
     339    function lfRegistData($uniqid, &$objPurchase, &$objCustomer) { 
     340        $params = $this->objFormParam->getHashArray(); 
    332341        $sqlval = $this->objFormParam->getDbArray(); 
    333342        // 登録データの作成 
    334         $sqlval['order_birth'] = SC_Utils_Ex::sfGetTimestamp($arrRet['year'], $arrRet['month'], $arrRet['day']); 
     343        $sqlval['order_birth'] = SC_Utils_Ex::sfGetTimestamp($params['year'], $params['month'], $params['day']); 
    335344        $sqlval['update_date'] = 'Now()'; 
    336345        $sqlval['customer_id'] = '0'; 
     
    338347        // お届け先を指定しない場合、 
    339348        if ($sqlval['deliv_check'] != '1') { 
    340             // 受注一時テーブルに登録する顧客(お客様情報)をお届け先へコピーする 
    341             $this->lfCopyDeliv($sqlval); 
    342         } 
    343  
    344         // 既存データのチェック 
    345         $objQuery = new SC_Query(); 
    346         $where = "order_temp_id = ?"; 
    347         $cnt = $objQuery->count("dtb_order_temp", $where, array($uniqid)); 
    348         // 既存データがない場合 
    349         if ($cnt == 0) { 
    350             $sqlval['order_temp_id'] = $uniqid; 
    351             $sqlval['create_date'] = 'Now()'; 
    352             $objQuery->insert("dtb_order_temp", $sqlval); 
    353         } else { 
    354             $objQuery->update("dtb_order_temp", $sqlval, $where, array($uniqid)); 
    355         } 
    356  
     349            // order_* を shipping_* へコピー 
     350            $objPurchase->copyFromOrder($sqlval, $params); 
     351        } 
     352        $objPurchase->saveShippingTemp($sqlval); 
     353        $objPurchase->saveOrderTemp($uniqid, $sqlval, $objCustomer); 
    357354    } 
    358355 
    359356    /* 入力内容のチェック */ 
    360357    function lfCheckError() { 
     358        // 入力値の変換 
     359        $this->objFormParam->convParam(); 
     360        $this->objFormParam->toLower('order_mail'); 
     361        $this->objFormParam->toLower('order_mail_check'); 
     362 
    361363        // 入力データを渡す。 
    362364        $arrRet = $this->objFormParam->getHashArray(); 
     
    366368        // 別のお届け先チェック 
    367369        if(isset($_POST['deliv_check']) && $_POST['deliv_check'] == "1") { 
    368             $objErr->doFunc(array("お名前(姓)", "deliv_name01"), array("EXIST_CHECK")); 
    369             $objErr->doFunc(array("お名前(名)", "deliv_name02"), array("EXIST_CHECK")); 
    370             $objErr->doFunc(array("お名前(フリガナ・姓)", "deliv_kana01"), array("EXIST_CHECK")); 
    371             $objErr->doFunc(array("お名前(フリガナ・名)", "deliv_kana02"), array("EXIST_CHECK")); 
    372             $objErr->doFunc(array("郵便番号1", "deliv_zip01"), array("EXIST_CHECK")); 
    373             $objErr->doFunc(array("郵便番号2", "deliv_zip02"), array("EXIST_CHECK")); 
    374             $objErr->doFunc(array("都道府県", "deliv_pref"), array("EXIST_CHECK")); 
    375             $objErr->doFunc(array("住所1", "deliv_addr01"), array("EXIST_CHECK")); 
    376             $objErr->doFunc(array("住所2", "deliv_addr02"), array("EXIST_CHECK")); 
    377             $objErr->doFunc(array("電話番号1", "deliv_tel01"), array("EXIST_CHECK")); 
    378             $objErr->doFunc(array("電話番号2", "deliv_tel02"), array("EXIST_CHECK")); 
    379             $objErr->doFunc(array("電話番号3", "deliv_tel03"), array("EXIST_CHECK")); 
     370            $objErr->doFunc(array("お名前(姓)", "shipping_name01"), array("EXIST_CHECK")); 
     371            $objErr->doFunc(array("お名前(名)", "shipping_name02"), array("EXIST_CHECK")); 
     372            $objErr->doFunc(array("お名前(フリガナ・姓)", "shipping_kana01"), array("EXIST_CHECK")); 
     373            $objErr->doFunc(array("お名前(フリガナ・名)", "shipping_kana02"), array("EXIST_CHECK")); 
     374            $objErr->doFunc(array("郵便番号1", "shipping_zip01"), array("EXIST_CHECK")); 
     375            $objErr->doFunc(array("郵便番号2", "shipping_zip02"), array("EXIST_CHECK")); 
     376            $objErr->doFunc(array("都道府県", "shipping_pref"), array("EXIST_CHECK")); 
     377            $objErr->doFunc(array("住所1", "shipping_addr01"), array("EXIST_CHECK")); 
     378            $objErr->doFunc(array("住所2", "shipping_addr02"), array("EXIST_CHECK")); 
     379            $objErr->doFunc(array("電話番号1", "shipping_tel01"), array("EXIST_CHECK")); 
     380            $objErr->doFunc(array("電話番号2", "shipping_tel02"), array("EXIST_CHECK")); 
     381            $objErr->doFunc(array("電話番号3", "shipping_tel03"), array("EXIST_CHECK")); 
    380382        } 
    381383 
     
    384386        $objErr->doFunc(array("FAX", "order_fax01", "order_fax02", "order_fax03"), array("TEL_CHECK")); 
    385387        $objErr->doFunc(array("郵便番号", "order_zip01", "order_zip02"), array("ALL_EXIST_CHECK")); 
    386         $objErr->doFunc(array("TEL", "deliv_tel01", "deliv_tel02", "deliv_tel03"), array("TEL_CHECK")); 
    387         $objErr->doFunc(array("FAX", "deliv_fax01", "deliv_fax02", "deliv_fax03"), array("TEL_CHECK")); 
    388         $objErr->doFunc(array("郵便番号", "deliv_zip01", "deliv_zip02"), array("ALL_EXIST_CHECK")); 
     388        $objErr->doFunc(array("TEL", "shipping_tel01", "shipping_tel02", "shipping_tel03"), array("TEL_CHECK")); 
     389        $objErr->doFunc(array("郵便番号", "shipping_zip01", "shipping_zip02"), array("ALL_EXIST_CHECK")); 
    389390        $objErr->doFunc(array("生年月日", "year", "month", "day"), array("CHECK_BIRTHDAY")); 
    390391        $objErr->doFunc(array("メールアドレス", "メールアドレス(確認)", "order_email", "order_email02"), array("EQUAL_CHECK")); 
Note: See TracChangeset for help on using the changeset viewer.