Changeset 16527


Ignore:
Timestamp:
2007/10/19 23:07:18 (16 years ago)
Author:
nanasess
Message:

モバイルメールアドレスが未登録の場合に, 登録先住所への配送が空白になるデグレ修正

Location:
branches/feature-module-update/data/class
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/SC_Customer.php

    r16380 r16527  
    171171    function setLogin($email) { 
    172172        // 本登録された会員のみ 
    173         $sql = "SELECT * FROM dtb_customer WHERE email = ? AND del_flg = 0 AND status = 2"; 
    174         $result = $this->conn->getAll($sql, array($email)); 
     173        $sql = "SELECT * FROM dtb_customer WHERE (email = ? OR email_mobile = ?) AND del_flg = 0 AND status = 2"; 
     174        $result = $this->conn->getAll($sql, array($email, $email)); 
    175175        $data = isset($result[0]) ? $result[0] : ""; 
    176176        $this->customer_data = $data; 
  • branches/feature-module-update/data/class/helper/SC_Helper_DB.php

    r16382 r16527  
    411411        $objCustomer = new SC_Customer(); 
    412412        // 会員情報登録処理 
    413         if ($objCustomer->isLoginSuccess()) { 
     413        if ($objCustomer->isLoginSuccess(true)) { 
    414414            // 登録データの作成 
    415415            $sqlval['order_temp_id'] = $uniqid; 
     
    430430            $sqlval['order_tel03'] = $objCustomer->getValue('tel03'); 
    431431            if (defined('MOBILE_SITE')) { 
    432                 $sqlval['order_email'] = $objCustomer->getValue('email_mobile'); 
     432                $email_mobile = $objCustomer->getValue('email_mobile'); 
     433                if (empty($email_mobile)) { 
     434                    $sqlval['order_email'] = $objCustomer->getValue('email'); 
     435                } else { 
     436                    $sqlval['order_email'] = $email_mobile; 
     437                } 
    433438            } else { 
    434439                $sqlval['order_email'] = $objCustomer->getValue('email'); 
  • branches/feature-module-update/data/class/pages/shopping/LC_Page_Shopping_Deliv.php

    r16497 r16527  
    258258                    // 仮登録の判定 
    259259                    $objQuery = new SC_Query; 
    260                     $where = "email = ? AND status = 1 AND del_flg = 0"; 
    261                     $ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email'])); 
     260                    $where = "(email = ? OR email_mobile = ?) AND status = 1 AND del_flg = 0"; 
     261                    $ret = $objQuery->count("dtb_customer", $where, array($arrForm['login_email'], $arrForm['login_email'])); 
    262262 
    263263                    if($ret > 0) { 
     
    277277 
    278278            /* 
    279              * email がモバイルドメインでは無く, 
    280              * 携帯メールアドレスが登録されていない場合 
    281              * 
    282              * XXX 携帯メールアドレスの登録が無いと,  
    283              *     配送先が空欄になってしまう場合がある 
     279             * 携帯メールアドレスが登録されていない場合は, 
     280             * 携帯メールアドレス登録画面へ遷移 
    284281             */ 
    285282            $objMobile = new SC_Helper_Mobile_Ex(); 
  • branches/feature-module-update/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r16497 r16527  
    199199        $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess, $arrInfo); 
    200200 
    201         // カー内の商品の売り切れチェック 
     201        // カー内の商品の売り切れチェック 
    202202        $objCartSess->chkSoldOut($objCartSess->getCartList(), true); 
    203203 
Note: See TracChangeset for help on using the changeset viewer.