From e89a3940eb37cf0b7e7e5d8476f98c8a6c36e20b Mon Sep 17 00:00:00 2001 From: Aman deep sharma Date: Fri, 20 Jun 2025 19:03:12 +0530 Subject: [PATCH] Fix: Ensure accurate saving of order detail tax data --- classes/order/OrderDetail.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/classes/order/OrderDetail.php b/classes/order/OrderDetail.php index 75d254e40..3e23ccdd6 100644 --- a/classes/order/OrderDetail.php +++ b/classes/order/OrderDetail.php @@ -372,23 +372,6 @@ class OrderDetailCore extends ObjectModel */ public function saveTaxCalculator(Order $order, $replace = false) { - // Nothing to save - if ($this->tax_calculator == null) { - return true; - } - - if (!($this->tax_calculator instanceof TaxCalculator)) { - return false; - } - - if (count($this->tax_calculator->taxes) == 0) { - return true; - } - - if ($order->total_products <= 0) { - return true; - } - $shipping_tax_amount = 0; foreach ($order->getCartRules() as $cart_rule) {