This commit is contained in:
Oliver
2025-10-04 06:49:26 -03:00
parent f72690988e
commit e8fa02b6b6

View File

@@ -132,6 +132,8 @@ function openModal(productHref) {
price = parts[parts.length - 1] || "0";
}
product = product.replace(/_/g, "");
modal.querySelector('input[name="product"]').value = product;
modal.querySelector('input[name="price"]').value = price;
modal.querySelector("#productText").textContent = `You will buy ${product} for $${price}.`;