From 4e5539c9efc1f047b11eb44f93af491f6bd92250 Mon Sep 17 00:00:00 2001 From: K-kiran77 Date: Sun, 21 Jul 2024 05:36:14 +0530 Subject: [PATCH 1/2] Order Total Bug Fixed --- src/User/components/Order/OrderSummary.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User/components/Order/OrderSummary.jsx b/src/User/components/Order/OrderSummary.jsx index b40141d5..94cfc49a 100644 --- a/src/User/components/Order/OrderSummary.jsx +++ b/src/User/components/Order/OrderSummary.jsx @@ -40,7 +40,7 @@ function OrderSummary() { From 2027848157fd81c3efa80a05782967d582aa0864 Mon Sep 17 00:00:00 2001 From: K-kiran77 Date: Wed, 24 Jul 2024 22:00:38 +0530 Subject: [PATCH 2/2] Order Summary fixed --- src/User/components/Order/OrderSummary.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/User/components/Order/OrderSummary.jsx b/src/User/components/Order/OrderSummary.jsx index 94cfc49a..c10acaa2 100644 --- a/src/User/components/Order/OrderSummary.jsx +++ b/src/User/components/Order/OrderSummary.jsx @@ -23,7 +23,7 @@ function OrderSummary() { const shippingRate = 40.0; let shipping = calculateShipping(itemsTotal, shippingThreshold, shippingRate); - let total = itemsTotal + shipping; + let total = itemsTotal < 500 ? itemsTotal + shipping : itemsTotal; useEffect(() => { dispatch(setTotalAmountAction(total)); @@ -40,7 +40,7 @@ function OrderSummary() {