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
                
                
                    
                                                
                                                    
                                |  | @@ 533-539 (lines=7) @@ | 
                                                            
                                    | 530 |  |     { | 
                                                            
                                    | 531 |  |         // 配送先住所最大値判定 | 
                                                            
                                    | 532 |  |         $Customer = $app->user(); | 
                                                            
                                    | 533 |  |         if ($app->isGranted('IS_AUTHENTICATED_FULLY')) { | 
                                                            
                                    | 534 |  |             $addressCurrNum = count($app->user()->getCustomerAddresses()); | 
                                                            
                                    | 535 |  |             $addressMax = $app['config']['deliv_addr_max']; | 
                                                            
                                    | 536 |  |             if ($addressCurrNum >= $addressMax) { | 
                                                            
                                    | 537 |  |                 throw new NotFoundHttpException(); | 
                                                            
                                    | 538 |  |             } | 
                                                            
                                    | 539 |  |         } | 
                                                            
                                    | 540 |  |  | 
                                                            
                                    | 541 |  |         // カートチェック | 
                                                            
                                    | 542 |  |         if (!$app['eccube.service.cart']->isLocked()) { |