Hi,
I'm doing the following with razor:
@foreach( var RelatedGroups in GetLoop("ProductRelatedGroups") )
{
if( RelatedGroups.GetString("Ecom:Product:RelatedGroup.GroupID").Equals("RELGRP9") )
{
foreach(var DescriptionProducts in RelatedGroups.GetLoop("Products") )
{
foreach( var DescriptionSubProducts in DescriptionProducts.GetLoop("ProductRelatedGroups") )
{
foreach( var SubProduct in DescriptionSubProducts.GetLoop("Products") )
{
Description += SubProduct.GetString("Ecom:Product.LongDescription") + "<br />";
}
}
}
}
}
}
But it seems like it wont work with the inner "ProductRelatedGroups" if i do a :
DescriptionProducts.GetLoop("ProductRelatedGroups").Count, it returns 0 even though the given product actually has 3 groups attached.
Cant i get the related groups of, of a product fetched by a related group?
Jonas