Ignore:
Timestamp:
2013/12/09 11:51:18 (7 years ago)
Author:
undertree
Message:

#2411 非会員購入時に生年月日が登録されない 対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Disp.php

    • Property svn:eol-style deleted
    r23230 r23300  
    8888        $this->arrDeviceType = $masterData->getMasterData('mtb_device_type'); 
    8989        $this->arrCountry = $masterData->getMasterData('mtb_country'); 
     90        $this->arrSex = $masterData->getMasterData('mtb_sex'); 
     91        $this->arrJob = $masterData->getMasterData('mtb_job'); 
    9092 
    9193        // 支払い方法の取得 
     
    164166        $objFormParam->addParam('電話番号2', 'order_tel02', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 
    165167        $objFormParam->addParam('電話番号3', 'order_tel03', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 
     168        $objFormParam->addParam('性別', 'order_sex', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 
     169        $objFormParam->addParam('職業', 'order_job', TEL_ITEM_LEN, 'n', array('MAX_LENGTH_CHECK' ,'NUM_CHECK')); 
     170        $objFormParam->addParam('生年月日(年)', 'order_birth_year', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
     171        $objFormParam->addParam('生年月日(月)', 'order_birth_month', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
     172        $objFormParam->addParam('生年月日(日)', 'order_birth_day', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    166173 
    167174        // 受注商品情報 
     
    311318         */ 
    312319        $arrOrder = $objPurchase->getOrder($order_id); 
     320 
     321        // 生年月日の処理 
     322        if (!SC_Utils_Ex::isBlank($arrOrder['order_birth'])) { 
     323            $order_birth = substr($arrOrder['order_birth'], 0, 10); 
     324            $arrOrderBirth = explode("-", $order_birth); 
     325            $arrOrder['order_birth_year'] = intval($arrOrderBirth[0]); 
     326            $arrOrder['order_birth_month'] = intval($arrOrderBirth[1]); 
     327            $arrOrder['order_birth_day'] = intval($arrOrderBirth[2]); 
     328        } 
     329 
    313330        $objFormParam->setParam($arrOrder); 
    314331 
Note: See TracChangeset for help on using the changeset viewer.