Showing the single result
-

Ground muscadine grape seed provides a convenient, whole-food source of naturally occurring polyphenols and antioxidant support
#nat-prl-muscadine-grape-seed-capsules-form select.lwf-select {
appearance: auto !important;
-webkit-appearance: menulist !important;
background-image: none !important;
cursor: pointer;
}
#nat-prl-muscadine-grape-seed-capsules-form .lwf-add-to-cart {
background: #164421;
color: #fff;
font-family: "Work Sans", sans-serif;
font-weight: 500;
text-transform: uppercase;
border-radius: 3px;
cursor: pointer;
}
(function () {
const formBox = document.getElementById("nat-prl-muscadine-grape-seed-capsules-form");
if (!formBox) return;
const packageSelect = formBox.querySelector("#nat-prl-muscadine-grape-seed-capsules-package");
const productPriceField = formBox.querySelector("#nat-prl-muscadine-grape-seed-capsules-productpr");
const priceDisplay = formBox.querySelector("#nat-prl-muscadine-grape-seed-capsules-price");
const addToCartButton = formBox.querySelector("#nat-prl-muscadine-grape-seed-capsules-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="nat-prl-muscadine-grape-seed-capsules-delivery"]');
const productName = "Nature's Pearl Premium Muscadine Grape Seed";
const packages = {
one: { sku: "USNP000001", description: "(1) bottle / 60 capsules", price: "32.95" },
two: { sku: "USNP000001", description: "(2) bottles / 60 capsules each", price: "65.90" },
three: { sku: "USNP000001", description: "(3) bottles / 60 capsules each", price: "98.85" },
four: { sku: "USNP000001", description: "(4) bottles / 60 capsules each", price: "131.80" }
};
function deliveryDescription(delivery) {
if (delivery === "monthly") return "autoship monthly";
if (delivery === "two-months") return "autoship every 2 months";
return "one-time purchase";
}
function updateSelection() {
const selectedPackage = packages[packageSelect.value];
const selectedDelivery = formBox.querySelector('input[name="nat-prl-muscadine-grape-seed-capsules-delivery"]:checked');
if (!selectedPackage) {
productPriceField.value = "";
priceDisplay.textContent = "(Price will show when you make your selection)";
priceDisplay.classList.add("lwf-price-prompt");
addToCartButton.disabled = true;
return;
}
const description = productName + ", " + selectedPackage.description +
", SKU " + selectedPackage.sku + ", " +
deliveryDescription(selectedDelivery ? selectedDelivery.value : "one-time");
productPriceField.value = description + ", :" + selectedPackage.price;
priceDisplay.textContent = "$" + Number(selectedPackage.price).toLocaleString("en-US", {
minimumFractionDigits: 2,
maximumFractionDigits: 2
});
priceDisplay.classList.remove("lwf-price-prompt");
addToCartButton.disabled = false;
addToCartButton.textContent = "ADD TO CART →";
}
deliveryInputs.forEach(function (input) {
input.addEventListener("change", updateSelection);
});
packageSelect.addEventListener("change", updateSelection);
updateSelection();
})();