-

A convenient drink mix combining fiber, B vitamins, enzymes and an unusually diverse blend of botanicals
#lwf-truecleanse-form select.lwf-select {
appearance: auto !important;
-webkit-appearance: menulist !important;
background-image: none !important;
cursor: pointer;
}
#lwf-truecleanse-form .lwf-add-to-cart {
background: #164421 !important;
color: #ffffff !important;
font-family: "Work Sans", sans-serif !important;
font-weight: 500 !important;
text-transform: uppercase !important;
border-radius: 2px !important;
cursor: pointer;
}
(function () {
const formBox = document.getElementById("lwf-truecleanse-form");
if (!formBox) return;
const form = formBox.querySelector("form");
const packageSelect = formBox.querySelector("#truecleanse-package");
const productPriceField = formBox.querySelector("#truecleanse-productpr");
const priceDisplay = formBox.querySelector("#truecleanse-price");
const addToCartButton = formBox.querySelector("#truecleanse-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="truecleanse-delivery"]');
const productName = "TrueCleanse";
const packages = {
one: {
sku: "TL006PROD",
description: "(1) box / 10 stick packets",
price: "59.95"
},
two: {
sku: "TL006PROD",
description: "(2) boxes / 10 stick packets each",
price: "119.90"
},
three: {
sku: "TL006PROD",
description: "(3) boxes / 10 stick packets each",
price: "179.85"
},
four: {
sku: "TL006PROD",
description: "(4) boxes / 10 stick packets each",
price: "239.80"
}
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="truecleanse-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 selectedPackage = packages[packageSelect.value];
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());
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);
form.addEventListener("submit", function (event) {
updateSelection();
if (!productPriceField.value) event.preventDefault();
});
updateSelection();
})();
-

A convenient daily fiber powder with prebiotic fibers, digestive enzymes, probiotics and botanical support for healthy digestion and metabolism
/* Keep the quantity selector's native dropdown arrow visible. */
#lwf-ygy-regulate-daily-fiber-form select.lwf-select {
appearance: auto !important;
-webkit-appearance: menulist !important;
background-image: none !important;
cursor: pointer;
}
/* Match the standardized Mal's cart button appearance. */
#lwf-ygy-regulate-daily-fiber-form .lwf-add-to-cart {
background: #164421;
color: #fff;
font-family: 'Work Sans', sans-serif;
font-weight: 500;
text-transform: uppercase;
border-radius: 2px;
cursor: pointer;
}
(function () {
const formBox = document.getElementById('lwf-ygy-regulate-daily-fiber-form');
if (!formBox) return;
const packageSelect = formBox.querySelector('#ygy-regulate-daily-fiber-package');
const productPriceField = formBox.querySelector('#ygy-regulate-daily-fiber-productpr');
const priceDisplay = formBox.querySelector('#ygy-regulate-daily-fiber-price');
const addToCartButton = formBox.querySelector('#ygy-regulate-daily-fiber-add-to-cart');
const deliveryInputs = formBox.querySelectorAll('input[name="ygy-regulate-daily-fiber-delivery"]');
const productName = 'YGY Regulate Daily Fiber';
const packages = {
one: { sku: 'USYG70003', description: '(1) pouch / 30 packets', price: '55.95' },
two: { sku: 'USYG70003', description: '(2) pouches / 30 packets each', price: '111.90' },
three: { sku: 'USYG70003', description: '(3) pouches / 30 packets each', price: '167.85' },
four: { sku: 'USYG70003', description: '(4) pouches / 30 packets each', price: '223.80' }
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="ygy-regulate-daily-fiber-delivery"]:checked');
return selected ? selected.value : 'one-time';
}
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];
if (!selectedPackage) {
productPriceField.value = '';
priceDisplay.textContent = 'Select a quantity';
addToCartButton.disabled = true;
return;
}
const description = productName + ', ' + selectedPackage.description +
', SKU ' + selectedPackage.sku + ', ' + deliveryDescription(selectedDelivery());
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 powdered blend of organic greens, fruits, fermented plant foods, fiber, probiotics, and digestive enzymes for an easy way to add more plant variety to your day
/* Local purchase-form refinements; do not affect other product forms. */
#lwf-ygy-super-greens-form select.lwf-select {
appearance: auto !important;
-webkit-appearance: menulist !important;
background-image: none !important;
cursor: pointer;
}
#lwf-ygy-super-greens-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("lwf-ygy-super-greens-form");
if (!formBox) return;
const packageSelect = formBox.querySelector("#ygy-super-greens-package");
const productPriceField = formBox.querySelector("#ygy-super-greens-productpr");
const priceDisplay = formBox.querySelector("#ygy-super-greens-price");
const addToCartButton = formBox.querySelector("#ygy-super-greens-add-to-cart");
const deliveryInputs = formBox.querySelectorAll('input[name="ygy-super-greens-delivery"]');
const productName = "Youngevity Super Greens";
const packages = {
one: { sku: "USYG300001", description: "(1) 257 g (9.07 oz.) canister", price: "51.95" },
two: { sku: "USYG300001", description: "(2) 257 g (9.07 oz.) canisters", price: "103.90" },
three: { sku: "USYG300001", description: "(3) 257 g (9.07 oz.) canisters", price: "155.85" },
four: { sku: "USYG300001", description: "(4) 257 g (9.07 oz.) canisters", price: "207.80" }
};
function selectedDelivery() {
const selected = formBox.querySelector('input[name="ygy-super-greens-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 selectedPackage = packages[packageSelect.value];
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());
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);
packageSelect.value = "one";
updateSelection();
})();