| @@ 324-331 (lines=8) @@ | ||
| 321 | $productClassQuantity -= $CurrentCartItem->getQuantity(); |
|
| 322 | } |
|
| 323 | ||
| 324 | for ($newQuantity = 0; $newQuantity < $quantity; $newQuantity++) { |
|
| 325 | // TODO 単価をProductClassではなくCartItemから取得する |
|
| 326 | $subtotal += $ProductClass->getPrice02IncTax(); |
|
| 327 | if ($subtotal > $this->app['config']['max_total_fee']) { |
|
| 328 | $this->setError('cart.over.price_limit'); |
|
| 329 | break; |
|
| 330 | } |
|
| 331 | } |
|
| 332 | ||
| 333 | // 数量が0の場合、エラー |
|
| 334 | if ($newQuantity == 0) { |
|
| @@ 478-485 (lines=8) @@ | ||
| 475 | $tmp_subtotal += $cartitem->getTotalPrice(); |
|
| 476 | } |
|
| 477 | } |
|
| 478 | for ($i = 0; $i < $quantity; $i++) { |
|
| 479 | $tmp_subtotal += $ProductClass->getPrice02IncTax(); |
|
| 480 | if ($tmp_subtotal > $this->app['config']['max_total_fee']) { |
|
| 481 | $this->setError('cart.over.price_limit'); |
|
| 482 | break; |
|
| 483 | } |
|
| 484 | $tmp_quantity++; |
|
| 485 | } |
|
| 486 | if ($tmp_quantity == 0) { |
|
| 487 | // 数量が0の場合、エラー |
|
| 488 | throw new CartException('cart.over.price_limit'); |
|