src/Eccube/Controller/Mypage/DeliveryController.php 1 location
|
@@ 63-69 (lines=7) @@
|
| 60 |
|
|
| 61 |
|
// 配送先住所最大値判定 |
| 62 |
|
// $idが存在する際は、追加処理ではなく、編集の処理ため本ロジックスキップ |
| 63 |
|
if (is_null($id)) { |
| 64 |
|
$addressCurrNum = count($Customer->getCustomerAddresses()); |
| 65 |
|
$addressMax = $app['config']['deliv_addr_max']; |
| 66 |
|
if ($addressCurrNum >= $addressMax) { |
| 67 |
|
throw new NotFoundHttpException(); |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
$CustomerAddress = $app['eccube.repository.customer_address']->findOrCreateByCustomerAndId($Customer, $id); |
| 72 |
|
|
src/Eccube/Controller/ShoppingController.php 1 location
|
@@ 639-645 (lines=7) @@
|
| 636 |
|
{ |
| 637 |
|
// 配送先住所最大値判定 |
| 638 |
|
$Customer = $app->user(); |
| 639 |
|
if ($app->isGranted('IS_AUTHENTICATED_FULLY')) { |
| 640 |
|
$addressCurrNum = count($app->user()->getCustomerAddresses()); |
| 641 |
|
$addressMax = $app['config']['deliv_addr_max']; |
| 642 |
|
if ($addressCurrNum >= $addressMax) { |
| 643 |
|
throw new NotFoundHttpException(); |
| 644 |
|
} |
| 645 |
|
} |
| 646 |
|
|
| 647 |
|
// カートチェック |
| 648 |
|
if (!$app['eccube.service.cart']->isLocked()) { |