Skip to content

Commit

Permalink
Updated payment page to display total cost as per the selected package.
Browse files Browse the repository at this point in the history
This does not affect the page or the website as a whole.

See #781
  • Loading branch information
techy4shri committed Jun 8, 2024
1 parent 94cb263 commit 671bdd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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`;
}

Expand Down

0 comments on commit 671bdd3

Please sign in to comment.