Hello, I am debugging a strange issue with the following code. The issue is that sometimes the Loop.Contains returns false, even if I have verified that the variants exist in DW, and after some time I reload the page again and it is true and everything works... and then this repeats itself.
The solution is using DW 9.10.11 as of now but I know that this issue did also persist when we were using 9.9.8 recently.
@if (Loops.Contains(@variant.GetString("Ecom:VariantCombination.VariantID")))
{
{
if (item.GetBoolean("Value"))
{
<div class="product-in-stock" data-location-code="@item.GetString("ID")"> - @item.GetString("Name") </div>
}
}
}
else
{
<div class="product-in-stock" data-location-code="webshop-only"> - Aðeins til í vefverslun </div>
}
</div>