Skip to content

Commit

Permalink
Merge pull request #19 from NicolasBarbey/fix/postage
Browse files Browse the repository at this point in the history
fix postage
  • Loading branch information
NicolasBarbey authored Jun 21, 2024
2 parents ae8fef3 + 0799659 commit 13573bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChronopostPickupPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>2.0.6</version>
<version>2.0.7</version>
<authors>
<author>
<name>Thelia</name>
Expand Down

0 comments on commit 13573bc

Please sign in to comment.