Changeset 22856 for branches/version-2_13-dev/data/class/SC_CartSession.php
- Timestamp:
- 2013/06/08 16:35:27 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_CartSession.php
r22736 r22856 67 67 ? $this->cartSession[$productTypeId]['cancel_purchase'] : ''; 68 68 $this->cartSession[$productTypeId]['cancel_purchase'] = false; 69 69 70 return $ret; 70 71 } … … 78 79 if ($this->cartSession[$productTypeId][$i]['quantity'] 79 80 != $_SESSION[$this->key_tmp][$i]['quantity']) { 80 81 81 $change = true; 82 82 break; … … 84 84 if ($this->cartSession[$productTypeId][$i]['id'] 85 85 != $_SESSION[$this->key_tmp][$i]['id']) { 86 87 86 $change = true; 88 87 break; … … 96 95 $this->cartSession[$productTypeId]['cancel_purchase'] = false; 97 96 } 97 98 98 return $this->cartSession[$productTypeId]['cancel_purchase']; 99 99 } … … 106 106 $count[] = $this->cartSession[$productTypeId][$key]['cart_no']; 107 107 } 108 108 109 return max($count) + 1; 109 110 } … … 132 133 } 133 134 } 135 134 136 return 0; 135 137 } … … 161 163 } 162 164 } 165 163 166 return $max; 164 167 } … … 172 175 $total+= $this->cartSession[$productTypeId][$i]['quantity']; 173 176 } 177 174 178 return $total; 175 179 } … … 182 186 $max = $this->getMax($productTypeId); 183 187 for ($i = 0; $i <= $max; $i++) { 184 185 188 if (!isset($this->cartSession[$productTypeId][$i]['price'])) { 186 189 $this->cartSession[$productTypeId][$i]['price'] = ''; … … 199 202 $total+= ($incTax * $quantity); 200 203 } 204 201 205 return $total; 202 206 } … … 216 220 $total+= ($tax * $quantity); 217 221 } 222 218 223 return $total; 219 224 } … … 242 247 } 243 248 } 249 244 250 return $total; 245 251 } … … 254 260 $max = $this->getMax($productTypeId); 255 261 for ($i = 0; $i <= $max; $i++) { 256 257 262 if ($this->cartSession[$productTypeId][$i]['id'] == $product_class_id) { 258 263 $val = $this->cartSession[$productTypeId][$i]['quantity'] + $quantity; … … 365 370 if (isset($this->cartSession[$productTypeId][$i]['cart_no']) 366 371 && $this->cartSession[$productTypeId][$i]['cart_no'] != '') { 367 368 372 // 商品情報は常に取得 369 373 // TODO 同一インスタンス内では1回のみ呼ぶようにしたい … … 394 398 } 395 399 } 400 396 401 return $arrRet; 397 402 } … … 415 420 } 416 421 } 422 417 423 return $results; 418 424 } … … 433 439 } 434 440 } 441 435 442 return $productClassIDs; 436 443 } … … 562 569 $tpl_message .= "※ 現時点で販売していない商品が含まれておりました。該当商品をカートから削除しました。\n"; 563 570 } else { 564 565 571 /* 566 572 * 配送業者のチェック … … 593 599 } 594 600 } 601 595 602 return $tpl_message; 596 603 } … … 655 662 $deliv_pref = '', $charge = 0, $discount = 0, $deliv_id = 0 656 663 ) { 657 658 664 $results = array(); 659 665 $total_point = $this->getAllProductsPoint($productTypeId); … … 709 715 } 710 716 } 717 711 718 return $results; 712 719 } … … 727 734 } 728 735 } 736 729 737 return array_keys($this->cartSession); 730 738 }
Note: See TracChangeset
for help on using the changeset viewer.