| @@ 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) { |
|
| @@ 436-443 (lines=8) @@ | ||
| 433 | $tmp_subtotal += $cartitem->getTotalPrice(); |
|
| 434 | } |
|
| 435 | } |
|
| 436 | for ($i = 0; $i < $quantity; $i++) { |
|
| 437 | $tmp_subtotal += $ProductClass->getPrice02IncTax(); |
|
| 438 | if ($tmp_subtotal > $this->app['config']['max_total_fee']) { |
|
| 439 | $this->setError('cart.over.price_limit'); |
|
| 440 | break; |
|
| 441 | } |
|
| 442 | $tmp_quantity++; |
|
| 443 | } |
|
| 444 | if ($tmp_quantity == 0) { |
|
| 445 | // 数量が0の場合、エラー |
|
| 446 | throw new CartException('cart.over.price_limit'); |
|