Ignore:
Timestamp:
2014/01/19 17:33:35 (10 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_Edit.php

    r23323 r23326  
    262262                $objFormParam->setParam($_POST); 
    263263                $objFormParam->convParam(); 
    264                 $customer_birth = $this->setCustomerTo($objFormParam->getValue('edit_customer_id'), 
     264                $this->setCustomerTo($objFormParam->getValue('edit_customer_id'), 
    265265                                     $objFormParam); 
     266                $customer_birth = $objFormParam->getValue('order_birth'); 
    266267                // 加算ポイントの計算 
    267268                if (USE_POINT === true && $this->tpl_mode == 'add') { 
     
    946947            $objFormParam->setValue('order_' . $key, $val); 
    947948        } 
     949 
     950        // 誕生日の処理 
     951        if (!SC_Utils_Ex::isBlank($objFormParam->getValue('order_birth'))) { 
     952            $order_birth = substr($objFormParam->getValue('order_birth'), 0, 10); 
     953            $arrOrderBirth = explode("-", $order_birth); 
     954 
     955            $objFormParam->setValue('order_birth_year', intval($arrOrderBirth[0])); 
     956            $objFormParam->setValue('order_birth_month', intval($arrOrderBirth[1])); 
     957            $objFormParam->setValue('order_birth_day', intval($arrOrderBirth[2])); 
     958        } 
     959 
    948960        $objFormParam->setValue('customer_id', $customer_id); 
    949961        $objFormParam->setValue('customer_point', $arrCustomer['point']); 
    950  
    951         return $arrCustomer['birth']; 
    952962    } 
    953963 
Note: See TracChangeset for help on using the changeset viewer.