src/Eccube/Controller/Mypage/DeliveryController.php 1 location
|
@@ 62-68 (lines=7) @@
|
| 59 |
|
|
| 60 |
|
// 配送先住所最大値判定 |
| 61 |
|
// $idが存在する際は、追加処理ではなく、編集の処理ため本ロジックスキップ |
| 62 |
|
if (is_null($id)) { |
| 63 |
|
$addressCurrNum = count($Customer->getCustomerAddresses()); |
| 64 |
|
$addressMax = $app['config']['deliv_addr_max']; |
| 65 |
|
if ($addressCurrNum >= $addressMax) { |
| 66 |
|
throw new NotFoundHttpException(); |
| 67 |
|
} |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
$CustomerAddress = $app['eccube.repository.customer_address']->findOrCreateByCustomerAndId($Customer, $id); |
| 71 |
|
|
src/Eccube/Controller/ShoppingController.php 1 location
|
@@ 563-570 (lines=8) @@
|
| 560 |
|
{ |
| 561 |
|
// 配送先住所最大値判定 |
| 562 |
|
$Customer = $app->user(); |
| 563 |
|
if ($Customer instanceof Customer) { |
| 564 |
|
error_log("hoge"); |
| 565 |
|
$addressCurrNum = count($app->user()->getCustomerAddresses()); |
| 566 |
|
$addressMax = $app['config']['deliv_addr_max']; |
| 567 |
|
if ($addressCurrNum >= $addressMax) { |
| 568 |
|
throw new NotFoundHttpException(); |
| 569 |
|
} |
| 570 |
|
} |
| 571 |
|
|
| 572 |
|
// カートチェック |
| 573 |
|
if (!$app['eccube.service.cart']->isLocked()) { |