- 41
Are FeaturedProducts available in version 3.0?
I have featured products in a category, but they do not display.
I'm testing it out and when I step into the code, item.CategoryModel.FeaturedProducts.Count is always equal to zero (0) even when there are featured products.
Below is a code I added.
foreach (var featured in item.CategoryModel.FeaturedProducts)
{
<li>
<a href="@Url.RouteUrl("Product", new { SeName = featured.SeName })" title="@featured.Name">@featured.Name</a>
</li>
}
I have featured products in a category, but they do not display.
I'm testing it out and when I step into the code, item.CategoryModel.FeaturedProducts.Count is always equal to zero (0) even when there are featured products.
Below is a code I added.
foreach (var featured in item.CategoryModel.FeaturedProducts)
{
<li>
<a href="@Url.RouteUrl("Product", new { SeName = featured.SeName })" title="@featured.Name">@featured.Name</a>
</li>
}