Changeset 17444 for branches/comu-ver2/data/class/SC_CartSession.php
- Timestamp:
- 2008/07/21 20:31:36 (18 years ago)
- File:
-
- 1 edited
-
branches/comu-ver2/data/class/SC_CartSession.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/SC_CartSession.php
r16741 r17444 188 188 // ポイント合計 189 189 $total = 0; 190 $max = $this->getMax(); 191 for($i = 0; $i <= $max; $i++) { 192 $price = $_SESSION[$this->key][$i]['price']; 193 $quantity = $_SESSION[$this->key][$i]['quantity']; 194 195 if (!isset($_SESSION[$this->key][$i]['point_rate'])) { 196 $_SESSION[$this->key][$i]['point_rate'] = ""; 197 } 198 $point_rate = $_SESSION[$this->key][$i]['point_rate']; 199 200 if (!isset($_SESSION[$this->key][$i]['id'][0])) { 201 $_SESSION[$this->key][$i]['id'][0] = ""; 202 } 203 $id = $_SESSION[$this->key][$i]['id'][0]; 204 $point = SC_Utils_Ex::sfPrePoint($price, $point_rate, POINT_RULE, $id); 205 $total+= ($point * $quantity); 190 if (USE_POINT !== false) { 191 $max = $this->getMax(); 192 for($i = 0; $i <= $max; $i++) { 193 $price = $_SESSION[$this->key][$i]['price']; 194 $quantity = $_SESSION[$this->key][$i]['quantity']; 195 196 if (!isset($_SESSION[$this->key][$i]['point_rate'])) { 197 $_SESSION[$this->key][$i]['point_rate'] = ""; 198 } 199 $point_rate = $_SESSION[$this->key][$i]['point_rate']; 200 201 if (!isset($_SESSION[$this->key][$i]['id'][0])) { 202 $_SESSION[$this->key][$i]['id'][0] = ""; 203 } 204 $id = $_SESSION[$this->key][$i]['id'][0]; 205 $point = SC_Utils_Ex::sfPrePoint($price, $point_rate, POINT_RULE, $id); 206 $total+= ($point * $quantity); 207 } 206 208 } 207 209 return $total; … … 322 324 } 323 325 324 // 個数の増加326 // 数量の増加 325 327 function upQuantity($cart_no) { 326 328 $max = $this->getMax(); … … 334 336 } 335 337 336 // 個数の減少338 // 数量の減少 337 339 function downQuantity($cart_no) { 338 340 $max = $this->getMax();
Note: See TracChangeset
for help on using the changeset viewer.
