Changeset 17442
- Timestamp:
- 2008/07/20 17:52:32 (16 years ago)
- 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 294 294 $objPage->tpl_total_pretax = 0; // 費用合計(税込み) 295 295 $objPage->tpl_total_tax = 0; // 消費税合計 296 if (USE_POINT !== false) { 296 297 $objPage->tpl_total_point = 0; // ポイント合計 298 } 297 299 298 300 // カート内情報の取得 … … 370 372 } 371 373 // ポイント付与率の登録 374 if (USE_POINT !== false) { 372 375 $objCartSess->setProductValue($arrCart[$i]['id'], 'point_rate', $arrData['point_rate']); 376 } 373 377 // 商品ごとの合計金額 374 378 $objPage->arrProductsClass[$cnt]['total_pretax'] = $objCartSess->getProductTotal($arrInfo, $arrCart[$i]['id']); … … 387 391 $objPage->tpl_total_tax = $objCartSess->getAllProductsTax($arrInfo); 388 392 // 全商品合計ポイント 393 if (USE_POINT !== false) { 389 394 $objPage->tpl_total_point = $objCartSess->getAllProductsPoint(); 395 } 390 396 391 397 return $objPage; … … 509 515 $customer_id = $arrRet[0]['customer_id']; 510 516 if($customer_id != "" && $customer_id >= 1) { 517 if (USE_POINT !== false) { 511 518 $arrRet = $objQuery->select("point", "dtb_customer", "customer_id = ?", array($customer_id)); 512 519 $point = $arrRet[0]['point']; 513 520 $total_point = $arrRet[0]['point'] - $use_point + $add_point; 521 } else { 522 $total_point = ""; 523 $point = ""; 524 } 514 525 } else { 515 526 $total_point = ""; … … 1482 1493 $arrData['payment_total'] = $arrData['total'] - ($arrData['use_point'] * POINT_VALUE); 1483 1494 // 加算ポイントの計算 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); 1488 1496 1489 1497 if($objCustomer != "") { … … 1492 1500 $arrData['birth_point'] = BIRTH_MONTH_POINT; 1493 1501 $arrData['add_point'] += $arrData['birth_point']; 1494 }1495 1502 } 1496 1503 } -
branches/comu-ver2/data/class/pages/shopping/LC_Page_Shopping_Complete.php
r17376 r17442 624 624 $sqlval['buy_times']++; 625 625 $sqlval['buy_total']+= $arrData['total']; 626 if (USE_POINT === false) { 627 $sqlval['point'] = $sqlval['point']; 628 } else { 626 629 $sqlval['point'] = ($sqlval['point'] - $arrData['use_point']); 630 } 627 631 628 632 // ポイントが不足している場合
Note: See TracChangeset
for help on using the changeset viewer.