Changeset 18052 for branches/comu-ver2/data/class/SC_CartSession.php
- Timestamp:
- 2009/06/06 03:19:45 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_CartSession.php
r17970 r18052 90 90 } 91 91 92 // 商品ごとの合計価格 93 function getProductTotal($arrInfo, $id) { 92 /** 93 * 商品ごとの合計価格 94 * XXX 実際には、「商品」ではなく、「カートの明細行(≒商品規格)」のような気がします。 95 * 96 * @param integer $id 97 * @return string 商品ごとの合計価格(税込み) 98 */ 99 function getProductTotal($id) { 94 100 $max = $this->getMax(); 95 101 for($i = 0; $i <= $max; $i++) { … … 100 106 $price = $_SESSION[$this->key][$i]['price']; 101 107 $quantity = $_SESSION[$this->key][$i]['quantity']; 102 $pre_tax = SC_ Utils_Ex::sfPreTax($price, $arrInfo['tax'], $arrInfo['tax_rule']);108 $pre_tax = SC_Helper_DB_Ex::sfPreTax($price); 103 109 $total = $pre_tax * $quantity; 104 110 return $total; … … 148 154 149 155 // 全商品の合計価格 150 function getAllProductsTotal( $arrInfo) {156 function getAllProductsTotal() { 151 157 // 税込み合計 152 158 $total = 0; … … 164 170 $quantity = $_SESSION[$this->key][$i]['quantity']; 165 171 166 $pre_tax = SC_ Utils::sfPreTax($price, $arrInfo['tax'], $arrInfo['tax_rule']);172 $pre_tax = SC_Helper_DB_Ex::sfPreTax($price); 167 173 $total+= ($pre_tax * $quantity); 168 174 } … … 171 177 172 178 // 全商品の合計税金 173 function getAllProductsTax( $arrInfo) {179 function getAllProductsTax() { 174 180 // 税合計 175 181 $total = 0; … … 178 184 $price = $_SESSION[$this->key][$i]['price']; 179 185 $quantity = $_SESSION[$this->key][$i]['quantity']; 180 $tax = SC_ Utils_Ex::sfTax($price, $arrInfo['tax'], $arrInfo['tax_rule']);186 $tax = SC_Helper_DB_Ex::sfTax($price); 181 187 $total+= ($tax * $quantity); 182 188 }
Note: See TracChangeset
for help on using the changeset viewer.