From 9aac1f8dcbc71914e2ebf6a9fa7ad88bae8664e5 Mon Sep 17 00:00:00 2001 From: Morven Lewis-Everley Date: Thu, 14 Nov 2024 23:53:38 +0000 Subject: [PATCH] If no rate can be found, revert to the default product rate --- src/Factory/LineItemFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Factory/LineItemFactory.php b/src/Factory/LineItemFactory.php index ce9a0e2..823d000 100644 --- a/src/Factory/LineItemFactory.php +++ b/src/Factory/LineItemFactory.php @@ -369,6 +369,8 @@ public function findBestTaxRate() if (strlen($country) >= 2 && strlen($region) >= 2) { $rate = $category->ValidTax($country, $region); + } else { + $rate = $product->getTaxRate(); } }