Skip to content

Commit

Permalink
If no rate can be found, revert to the default product rate
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewis-everley committed Nov 14, 2024
1 parent e11169f commit 9aac1f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Factory/LineItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,8 @@ public function findBestTaxRate()

if (strlen($country) >= 2 && strlen($region) >= 2) {
$rate = $category->ValidTax($country, $region);
} else {
$rate = $product->getTaxRate();
}
}

Expand Down

0 comments on commit 9aac1f8

Please sign in to comment.