From 671bdd3291e285b38c3e0f9a4fae2b5083621dc7 Mon Sep 17 00:00:00 2001 From: GARIMA <141991095+techy4shri@users.noreply.github.com> Date: Sat, 8 Jun 2024 23:38:00 +0530 Subject: [PATCH] Updated payment page to display total cost as per the selected package. This does not affect the page or the website as a whole. See #781 --- payment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/payment.js b/payment.js index 3f04ed32..b461ab7f 100644 --- a/payment.js +++ b/payment.js @@ -172,7 +172,7 @@ function validateAddress() { const promoCodeDiscount = 1000; const totalCost = packageCost - promoCodeDiscount; document.getElementById("total-cost").textContent = totalCost + "/-"; - + /*Free And express Delivary Code starts here*/ document.addEventListener("DOMContentLoaded", function () { @@ -210,7 +210,7 @@ document.addEventListener("DOMContentLoaded", function () { listGroup.insertBefore(shippingItem, totalSpan.parentNode); // To Update the total amount in the cart - const totalAmount = 14000 + shippingCost; //imagine total amount is 14000 INR + const totalAmount = totalCost + shippingCost; //imagine total amount is 14000 INR totalSpan.textContent = `${totalAmount} INR`; }