From 9af54e27a4157387ea9e1ee425cd2ed54c62c2ae Mon Sep 17 00:00:00 2001 From: zzuutt Date: Fri, 10 Oct 2014 10:11:59 +0200 Subject: [PATCH] No relay chosen if the customer choose delivery in the relay and not select the address of the relay --- Listener/SetDeliveryModule.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Listener/SetDeliveryModule.php b/Listener/SetDeliveryModule.php index adb78a5..b6f7733 100755 --- a/Listener/SetDeliveryModule.php +++ b/Listener/SetDeliveryModule.php @@ -114,6 +114,10 @@ public function isModuleSoColissimo(OrderEvent $event) ->setCountryId($customer_name->getCountryId()) ->save(); } + else { + + throw new \ErrorException("No relay chosen for Socolissimo delivery module"); + } } }