Ignore:
Timestamp:
2009/09/01 15:04:37 (15 years ago)
Author:
Seasoft
Message:
  • #540(LC_Page_Shopping_Confirm#process 「カート内の商品の売り切れチェック」が動作していない)を改修。
  • #544(サンプルデータで在庫制限が異常動作)を改修。
  • #534(dtb_products.sale_unlimited は不要)を改善。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Payment.php

    r18235 r18275  
    9595        } 
    9696 
    97         // 金額の取得 (購入途中で売り切れた場合にはこの関数内にてその商品の数量が0になる) 
     97        // カート内商品の集計処理を行う 
    9898        $objDb->sfTotalCart($this, $objCartSess); 
    99  
    100         if (empty($arrData)) $arrData = array(); 
    101         $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess); 
    102  
    103         // カート内の商品の売り切れチェック 
    104         $objCartSess->chkSoldOut($objCartSess->getCartList()); 
     99        if (strlen($this->tpl_message) >= 1) { 
     100            SC_Utils_Ex::sfDispSiteError(SOLD_OUT, '', true); 
     101        } 
     102 
     103        $this->arrData = $objDb->sfTotalConfirm(array(), $this, $objCartSess); 
    105104 
    106105        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
     
    110109            // 入力値の変換 
    111110            $this->objFormParam->convParam(); 
    112             $this->arrErr = $this->lfCheckError($this->arrData ); 
     111            $this->arrErr = $this->lfCheckError($this->arrData); 
    113112            // 入力エラーなし 
    114113            if(count($this->arrErr) == 0) { 
     
    204203        // 金額の取得 (購入途中で売り切れた場合にはこの関数内にてその商品の数量が0になる) 
    205204        $objDb->sfTotalCart($this, $objCartSess); 
    206         if (empty($arrData)) $arrData = array(); 
    207         $this->arrData = $objDb->sfTotalConfirm($arrData, $this, $objCartSess); 
    208  
    209         // カート内の商品の売り切れチェック 
    210         $objCartSess->chkSoldOut($objCartSess->getCartList(), true); 
     205        if (strlen($this->tpl_message) >= 1) { 
     206            SC_Utils_Ex::sfDispSiteError(SOLD_OUT, '', true); 
     207        } 
     208         
     209        $this->arrData = $objDb->sfTotalConfirm(array(), $this, $objCartSess); 
    211210 
    212211        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
     
    247246            // 入力値の変換 
    248247            $this->objFormParam->convParam(); 
    249             $this->arrErr = $this->lfCheckError($this->arrData ); 
     248            $this->arrErr = $this->lfCheckError($this->arrData); 
    250249            // 入力エラーなし 
    251250            if(count($this->arrErr) == 0) { 
Note: See TracChangeset for help on using the changeset viewer.