diff --git a/ChronopostPickupPoint.php b/ChronopostPickupPoint.php index aa93d81..051d4ae 100644 --- a/ChronopostPickupPoint.php +++ b/ChronopostPickupPoint.php @@ -226,6 +226,13 @@ public function isValidDelivery(Country $country, State $state = null) /** Check if Chronopost delivers in the asked area */ if (null !== $prices || null !== $freeShipping) { + + try { + $this->getPostage($country, $state); + }catch (\Exception $exception){ + return false; + } + return true; } diff --git a/Config/module.xml b/Config/module.xml index ffe8730..3d153c0 100644 --- a/Config/module.xml +++ b/Config/module.xml @@ -15,7 +15,7 @@ en_US fr_FR - 2.0.6 + 2.0.7 Thelia