-

A liquid bone-and-joint formula combining Glucosamine HCl, MSM, Vitamin C, Vitamin K, Zinc, and Ipriflavone
(function () {
const formBox = document.getElementById("lwf-flexeoplus-form");
if (!formBox) {
return;
}
const packageSelect = formBox.querySelector("#flexeoplus-package");
const productPriceField = formBox.querySelector("#flexeoplus-productpr");
const priceDisplay = formBox.querySelector("#flexeoplus-price");
const addToCartButton = formBox.querySelector("#flexeoplus-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="flexeoplus-delivery"]');
const productName = "FlexeoPlus";
const packages = {
single: {
sku: "USLF000703",
description: "1 bottle",
price: "35.99"
},
two: {
sku: "USLF000703",
description: "2 bottles",
price: "71.98"
},
three: {
sku: "USLF000703",
description: "3 bottles",
price: "107.97"
},
four: {
sku: "USLF000703",
description: "4 bottles",
price: "143.96"
},
eight: {
sku: "USLF000704",
description: "8 bottles",
price: "191.95"
}
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="flexeoplus-delivery"]:checked');
return selected ? selected.value : "";
}
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 packageKey = packageSelect.value;
const delivery = selectedDelivery();
if (!packageKey) {
productPriceField.value = "";
priceDisplay.textContent =
"(Price will show when you make your selection)";
priceDisplay.classList.add("lwf-price-prompt");
addToCartButton.disabled = true;
addToCartButton.textContent = "Add to Cart";
return;
}
const selectedPackage = packages[packageKey];
if (!selectedPackage) {
return;
}
const description =
productName +
", " +
selectedPackage.description +
", SKU " +
selectedPackage.sku +
", " +
deliveryDescription(delivery);
productPriceField.value =
description +
", :" +
selectedPackage.price;
priceDisplay.textContent =
"$" + selectedPackage.price;
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();
})();
-

A liquid calcium and mineral formula featuring calcium orotate, vitamin D3, magnesium, trace and ultra-trace minerals and glucosamine to support healthy bones and joints.*
(function () {
const formBox = document.getElementById("lwf-osteoprocare-form");
if (!formBox) {
return;
}
const packageSelect = formBox.querySelector("#opc-package");
const productPriceField = formBox.querySelector("#opc-productpr");
const priceDisplay = formBox.querySelector("#opc-price");
const addToCartButton = formBox.querySelector("#opc-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="opc-delivery"]');
const productName = "OsteoProCare liquid calcium";
const packages = {
one: {
sku: "USLF000700V",
description: "(1) quart / 960 mL",
price: "44.95"
},
two: {
sku: "USLF000700V",
description: "(2) quarts / 960 mL each",
price: "89.90"
},
three: {
sku: "USLF000700V",
description: "(3) quarts / 960 mL each",
price: "134.85"
},
four: {
sku: "USLF000147V",
description: "(4) quarts / 960 mL each",
price: "165.95"
}
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="opc-delivery"]:checked');
return selected ? selected.value : "";
}
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 packageKey = packageSelect.value;
const delivery = selectedDelivery();
if (!packageKey) {
productPriceField.value = "";
priceDisplay.textContent =
"(Price will show when you make your selection)";
priceDisplay.classList.add("lwf-price-prompt");
addToCartButton.disabled = true;
addToCartButton.textContent = "Add to Cart";
return;
}
const selectedPackage = packages[packageKey];
if (!selectedPackage) {
return;
}
const description =
productName +
", " +
selectedPackage.description +
", SKU " +
selectedPackage.sku +
", " +
deliveryDescription(delivery);
productPriceField.value =
description +
", :" +
selectedPackage.price;
priceDisplay.textContent =
"$" + selectedPackage.price;
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();
})();