Changeset 22707
- Timestamp:
- 2013/03/10 10:49:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_CartSession.php
r22706 r22707 28 28 * @version $Id$ 29 29 */ 30 class SC_CartSession 30 class SC_CartSession 31 31 { 32 32 /** ユニークIDを指定する. */ … … 127 127 $price = $this->cartSession[$productTypeId][$i]['price']; 128 128 $quantity = $this->cartSession[$productTypeId][$i]['quantity']; 129 $incTax = SC_Helper_ TaxRule_Ex::sfCalcIncTax($price, 0, $id[0]);129 $incTax = SC_Helper_DB_Ex::sfCalcIncTax($price); 130 130 $total = $incTax * $quantity; 131 131 return $total; … … 194 194 $quantity = $this->cartSession[$productTypeId][$i]['quantity']; 195 195 196 $incTax = SC_Helper_TaxRule_Ex::sfCalcIncTax($price, 197 $this->cartSession[$productTypeId][$i]['productsClass']['product_id'], 198 $this->cartSession[$productTypeId][$i]['id'][0]); 196 $incTax = SC_Helper_DB_Ex::sfCalcIncTax($price); 199 197 $total+= ($incTax * $quantity); 200 198 } … … 211 209 $price = $this->cartSession[$productTypeId][$i]['price']; 212 210 $quantity = $this->cartSession[$productTypeId][$i]['quantity']; 213 $tax = SC_Helper_TaxRule_Ex::sfTax($price, 214 $this->cartSession[$productTypeId][$i]['productsClass']['product_id'], 215 $this->cartSession[$productTypeId][$i]['id'][0]); 211 $tax = SC_Helper_DB_Ex::sfTax($price); 216 212 $total+= ($tax * $quantity); 217 213 } … … 378 374 379 375 $quantity = $this->cartSession[$productTypeId][$i]['quantity']; 380 $incTax = SC_Helper_TaxRule_Ex::sfCalcIncTax($price, 381 $this->cartSession[$productTypeId][$i]['productsClass']['product_id'], 382 $this->cartSession[$productTypeId][$i]['id'][0]); 383 376 $incTax = SC_Helper_DB_Ex::sfCalcIncTax($price); 384 377 $total = $incTax * $quantity; 385 378 … … 578 571 if ($limit > 0) { 579 572 $this->setProductValue($arrItem['id'], 'quantity', $limit, $productTypeId); 580 $total_inctax = $limit * SC_Helper_TaxRule_Ex::sfCalcIncTax($arrItem['price'], 581 $product['product_id'], 582 $arrItem['id'][0]); 573 $total_inctax = SC_Helper_DB_Ex::sfCalcIncTax($arrItem['price']) * $limit; 583 574 $this->setProductValue($arrItem['id'], 'total_inctax', $total_inctax, $productTypeId); 584 575 $tpl_message .= '※「' . $product['name'] . '」は販売制限(または在庫が不足)しております。'; … … 661 652 $results['deliv_fee'] = 0; 662 653 663 $arr TaxInfo = SC_Helper_TaxRule_Ex::getTaxRule();664 $results['order_tax_rate'] = $arr TaxInfo['tax_rate'];665 $results['order_tax_rule'] = $arr TaxInfo['calc_rule'];654 $arrInfo = SC_Helper_DB_Ex::sfGetBasisData(); 655 $results['order_tax_rate'] = $arrInfo['tax']; 656 $results['order_tax_rule'] = $arrInfo['tax_rule']; 666 657 667 658 // 商品ごとの送料を加算
Note: See TracChangeset
for help on using the changeset viewer.