Changeset 17442


Ignore:
Timestamp:
2008/07/20 17:52:32 (16 years ago)
Author:
x41
Message:

ポイントシステムON・OFF 関数修正

Location:
branches/comu-ver2/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/helper/SC_Helper_DB.php

    r17435 r17442  
    294294        $objPage->tpl_total_pretax = 0;     // 費用合計(税込み) 
    295295        $objPage->tpl_total_tax = 0;        // 消費税合計 
     296    if (USE_POINT !== false) { 
    296297        $objPage->tpl_total_point = 0;      // ポイント合計 
     298    } 
    297299 
    298300        // カート内情報の取得 
     
    370372                } 
    371373                // ポイント付与率の登録 
     374        if (USE_POINT !== false) { 
    372375                $objCartSess->setProductValue($arrCart[$i]['id'], 'point_rate', $arrData['point_rate']); 
     376        } 
    373377                // 商品ごとの合計金額 
    374378                $objPage->arrProductsClass[$cnt]['total_pretax'] = $objCartSess->getProductTotal($arrInfo, $arrCart[$i]['id']); 
     
    387391        $objPage->tpl_total_tax = $objCartSess->getAllProductsTax($arrInfo); 
    388392        // 全商品合計ポイント 
     393    if (USE_POINT !== false) { 
    389394        $objPage->tpl_total_point = $objCartSess->getAllProductsPoint(); 
     395    } 
    390396 
    391397        return $objPage; 
     
    509515        $customer_id = $arrRet[0]['customer_id']; 
    510516        if($customer_id != "" && $customer_id >= 1) { 
     517    if (USE_POINT !== false) { 
    511518            $arrRet = $objQuery->select("point", "dtb_customer", "customer_id = ?", array($customer_id)); 
    512519            $point = $arrRet[0]['point']; 
    513520            $total_point = $arrRet[0]['point'] - $use_point + $add_point; 
     521    } else { 
     522        $total_point = ""; 
     523            $point = ""; 
     524    } 
    514525        } else { 
    515526            $total_point = ""; 
     
    14821493        $arrData['payment_total'] = $arrData['total'] - ($arrData['use_point'] * POINT_VALUE); 
    14831494        // 加算ポイントの計算 
    1484         if (USE_POINT === false) { 
    1485             $arrData['add_point'] = 0; 
    1486         } else { 
    1487             $arrData['add_point'] = SC_Utils::sfGetAddPoint($objPage->tpl_total_point, $arrData['use_point'], $arrInfo); 
     1495        $arrData['add_point'] = SC_Utils::sfGetAddPoint($objPage->tpl_total_point, $arrData['use_point'], $arrInfo); 
    14881496             
    14891497            if($objCustomer != "") { 
     
    14921500                    $arrData['birth_point'] = BIRTH_MONTH_POINT; 
    14931501                    $arrData['add_point'] += $arrData['birth_point']; 
    1494                 } 
    14951502            } 
    14961503        } 
  • branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Complete.php

    r17376 r17442  
    624624        $sqlval['buy_times']++; 
    625625        $sqlval['buy_total']+= $arrData['total']; 
     626    if (USE_POINT === false) { 
     627    $sqlval['point'] = $sqlval['point']; 
     628    } else { 
    626629        $sqlval['point'] = ($sqlval['point'] - $arrData['use_point']); 
     630    } 
    627631 
    628632        // ポイントが不足している場合 
Note: See TracChangeset for help on using the changeset viewer.