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
                
                
                    
                                                
                                                    
                                 | 
                                
                                    @@ 565-572 (lines=8) @@
                                 | 
                            
                                                            
                                    | 562 | 
                                     | 
                                        { | 
                                
                                                            
                                    | 563 | 
                                     | 
                                            // 配送先住所最大値判定  | 
                                
                                                            
                                    | 564 | 
                                     | 
                                            $Customer = $app->user();  | 
                                
                                                            
                                    | 565 | 
                                     | 
                                            if ($Customer instanceof Customer) { | 
                                
                                                            
                                    | 566 | 
                                     | 
                                                error_log("hoge"); | 
                                
                                                            
                                    | 567 | 
                                     | 
                                                $addressCurrNum = count($app->user()->getCustomerAddresses());  | 
                                
                                                            
                                    | 568 | 
                                     | 
                                                $addressMax = $app['config']['deliv_addr_max'];  | 
                                
                                                            
                                    | 569 | 
                                     | 
                                                if ($addressCurrNum >= $addressMax) { | 
                                
                                                            
                                    | 570 | 
                                     | 
                                                    throw new NotFoundHttpException();  | 
                                
                                                            
                                    | 571 | 
                                     | 
                                                }  | 
                                
                                                            
                                    | 572 | 
                                     | 
                                            }  | 
                                
                                                            
                                    | 573 | 
                                     | 
                                     | 
                                
                                                            
                                    | 574 | 
                                     | 
                                            // カートチェック  | 
                                
                                                            
                                    | 575 | 
                                     | 
                                            if (!$app['eccube.service.cart']->isLocked()) { |