src/Eccube/Controller/Mypage/DeliveryController.php 1 location
|
@@ 65-71 (lines=7) @@
|
| 62 |
|
|
| 63 |
|
// 配送先住所最大値判定 |
| 64 |
|
// $idが存在する際は、追加処理ではなく、編集の処理ため本ロジックスキップ |
| 65 |
|
if (is_null($id)) { |
| 66 |
|
$addressCurrNum = count($Customer->getCustomerAddresses()); |
| 67 |
|
$addressMax = $app['config']['deliv_addr_max']; |
| 68 |
|
if ($addressCurrNum >= $addressMax) { |
| 69 |
|
throw new NotFoundHttpException(); |
| 70 |
|
} |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
$CustomerAddress = $app['eccube.repository.customer_address']->findOrCreateByCustomerAndId($Customer, $id); |
| 74 |
|
|
src/Eccube/Controller/ShoppingController.php 1 location
|
@@ 717-723 (lines=7) @@
|
| 714 |
|
} |
| 715 |
|
// 配送先住所最大値判定 |
| 716 |
|
$Customer = $app->user(); |
| 717 |
|
if ($app->isGranted('IS_AUTHENTICATED_FULLY')) { |
| 718 |
|
$addressCurrNum = count($app->user()->getCustomerAddresses()); |
| 719 |
|
$addressMax = $app['config']['deliv_addr_max']; |
| 720 |
|
if ($addressCurrNum >= $addressMax) { |
| 721 |
|
throw new NotFoundHttpException(); |
| 722 |
|
} |
| 723 |
|
} |
| 724 |
|
|
| 725 |
|
// カートチェック |
| 726 |
|
if (!$app['eccube.service.cart']->isLocked()) { |