|
@@ 288-298 (lines=11) @@
|
| 285 |
|
|
| 286 |
|
$this->setCanAddProductType($ProductClass->getProductType()); |
| 287 |
|
|
| 288 |
|
if ($this->BaseInfo->getOptionMultipleShipping() != Constant::ENABLED) { |
| 289 |
|
if (!$this->canAddProduct($ProductClass->getId())) { |
| 290 |
|
// 複数配送対応でなければ商品種別が異なればエラー |
| 291 |
|
throw new CartException('cart.product.type.kind'); |
| 292 |
|
} |
| 293 |
|
} else { |
| 294 |
|
// 複数配送の場合、同一支払方法がなければエラー |
| 295 |
|
if (!$this->canAddProductPayment($ProductClass->getProductType())) { |
| 296 |
|
throw new CartException('cart.product.payment.kind'); |
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
$compareService = $this->generateCartCompareService(); |
| 301 |
|
$tmp_subtotal = 0; |
|
@@ 429-439 (lines=11) @@
|
| 426 |
|
|
| 427 |
|
$this->setCanAddProductType($ProductClass->getProductType()); |
| 428 |
|
|
| 429 |
|
if ($this->BaseInfo->getOptionMultipleShipping() != Constant::ENABLED) { |
| 430 |
|
if (!$this->canAddProduct($ProductClass->getId())) { |
| 431 |
|
// 複数配送対応でなければ商品種別が異なればエラー |
| 432 |
|
throw new CartException('cart.product.type.kind'); |
| 433 |
|
} |
| 434 |
|
} else { |
| 435 |
|
// 複数配送の場合、同一支払方法がなければエラー |
| 436 |
|
if (!$this->canAddProductPayment($ProductClass->getProductType())) { |
| 437 |
|
throw new CartException('cart.product.payment.kind'); |
| 438 |
|
} |
| 439 |
|
} |
| 440 |
|
|
| 441 |
|
$tmp_subtotal = 0; |
| 442 |
|
$tmp_quantity = 0; |