Hi,
trying to modify the rapido product template to render size options based on the variant color selection. It a size variant is sold out the size should be disabled. I have unsuccessfully tried to modify the product feed template to disable the variant option with no stock. Any idears or suggestions?
foreach (LoopItem variantcombination in variantoption.GetLoop("VariantCombinations"))
{
if (variantcombination.GetDouble("Ecom:VariantCombination.Product.Stock") > 0)
{
variantOptionObject.disabled = "";
variantOptionObject.stock = GetDouble("Ecom:VariantCombination.Product.Stock");
}
else
{
variantOptionObject.disabled = "disabled";
variantOptionObject.stock = GetDouble("Ecom:VariantCombination.Product.Stock");
}
}