- 130
The following section of code, from the ProductTemplate.Simple.cshtml, never seems to execute, as the manufacturer and categories don't appear like on the demo. I presume one of the 2 conditions isn't being met...but I do not understand how..the products all have a manufacturer and category defined....
Is there a setting somewhere that I am not seeing?
Thanks-
Is there a setting somewhere that I am not seeing?
Thanks-
@if (productFashionModel != null && ((productFashionModel.ProductManufacturers != null && productFashionModel.ProductManufacturers.Count > 0)
|| (productFashionModel.ProductCategories != null && productFashionModel.ProductCategories.Count > 0)))
{
<div class="links-list">
<span class="view-more-options">@T("SevenSpikes.Themes.Fashion.Product.ViewMore")</span>
<ul>
@foreach (ProductManufacturerMiniModel manufacturer in productFashionModel.ProductManufacturers)
{
<li>
<a title="@manufacturer.Name" href="@Url.RouteUrl("Manufacturer", new { SeName = @manufacturer.SeName })">
@manufacturer.Name
</a>
</li>
}
@foreach (ProductCategoryMiniModel category in productFashionModel.ProductCategories)
{
<li>
<a title="@category.Name" href="@Url.RouteUrl("Category", new { SeName = @category.SeName })">
@category.Name
</a>
</li>
}
</ul>
</div>
}