document.addEventListener("DOMContentLoaded", function() { fetch('/cart.js') .then(response => response.json()) .then(cart => { // Calculate the percentage discount if a promo is applied // Replace with your exact logic for per-item cost cart.items.forEach(item => { const discountPercentage = 0.20; // 20% off as an example const newPrice = item.price * (1 - discountPercentage); // Target your .sale-price-class const priceElements = document.querySelectorAll('.sale-price-class'); priceElements.forEach(el => { el.innerText = `$${(newPrice / 100).toFixed(2)}`; }); }); }); });
Customer Info
* Required
Shipping Address
* Required
Shipping Method
Payment Info
* Required
Items in Order
Quantity:
1
$ 0.00 USD
  • :
$ 0.00 USD
$ 0.00 USD
Order Summary
Subtotal
$ 0.00 USD
Total
Place Order