Showing the single result
-

A whole-food liquid blend of aloe vera, nine sea vegetables, flaxseed and elderberry for everyday nutritional support
Autoship is optional and can be changed or canceled at any time
Price
(Price will show when you make your selection)
Shipping is calculated separately
Ships Directly from Youngevity
Your order is fulfilled by the manufacturer, not from third-party reseller inventory.
What’s this? ↓
(function () {
const formBox =
document.getElementById("lwf-body-balance-2-0-form");
if (!formBox) {
return;
}
const packageSelect =
formBox.querySelector("#bb20-package");
const productPriceField =
formBox.querySelector("#bb20-productpr");
const priceDisplay =
formBox.querySelector("#bb20-price");
const addToCartButton =
formBox.querySelector("#bb20-add-to-cart");
const deliveryInputs =
formBox.querySelectorAll(
'input[name="bb20-delivery"]'
);
/* ---------------------------------------------------------
Product identification
--------------------------------------------------------- */
const productName =
"Body Balance 2.0";
/* ---------------------------------------------------------
Package options
--------------------------------------------------------- */
const packages = {
one: {
sku: "USLF000140",
description: "(1) bottle",
price: "38.95"
},
two: {
sku: "USLF000142",
description: "(2) bottles",
price: "68.95"
},
three: {
sku: "USLF000140",
description: "(3) bottles",
price: "107.90"
},
four: {
sku: "USLF000144",
description: "(4) bottles",
price: "127.25"
},
eight: {
sku: "USLF000148",
description: "(8) bottles",
price: "224.95"
}
};
/* ---------------------------------------------------------
Get selected delivery option
--------------------------------------------------------- */
function selectedDelivery() {
const selected =
formBox.querySelector(
'input[name="bb20-delivery"]:checked'
);
return selected ? selected.value : "";
}
/* ---------------------------------------------------------
Standard delivery wording
--------------------------------------------------------- */
function deliveryDescription(delivery) {
if (delivery === "monthly") {
return "autoship monthly";
}
if (delivery === "two-months") {
return "autoship every 2 months";
}
return "one-time purchase";
}
/* ---------------------------------------------------------
Build complete Mals cart description and price
--------------------------------------------------------- */
function updateSelection() {
const packageKey =
packageSelect.value;
const delivery =
selectedDelivery();
/* No quantity selected yet */
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;
}
/*
Cart wording:
Product name
+ quantity/package description
+ manufacturer SKU
+ selected delivery schedule
Price does not change for autoship.
*/
const description =
productName +
", " +
selectedPackage.description +
", SKU " +
selectedPackage.sku +
", " +
deliveryDescription(delivery);
/*
Mals productpr format:
full description, :price
*/
productPriceField.value =
description +
", :" +
selectedPackage.price;
/* Display selected price */
priceDisplay.textContent =
"$" + selectedPackage.price;
priceDisplay.classList.remove(
"lwf-price-prompt"
);
/* Enable Add to Cart */
addToCartButton.disabled = false;
addToCartButton.textContent =
"Add to Cart";
}
/* ---------------------------------------------------------
Event listeners
--------------------------------------------------------- */
deliveryInputs.forEach(
function (input) {
input.addEventListener(
"change",
updateSelection
);
}
);
packageSelect.addEventListener(
"change",
updateSelection
);
/* ---------------------------------------------------------
Initialize
--------------------------------------------------------- */
updateSelection();
})();