Right I have just inserted 19,000 products into the Nop dbo.Product table (using the new feilds I that was created). I have mapped one of the 19,000 products to newly created category. Its not displaying. In the
CategoryTemplate.ProductsInGridOrLines.cshtml
@*product list*@
@if (Model.Products.Count > 0)
{
@*list mode*@
<div class="product-list">
<div class="Product">
Product List
</div>
<br />
<div class="product-block">
<table style="width: 100%;"border="solid #ffc600">
<tr>
<th class="image">
</th>
<th class="Code">
Code
</th>
<th class="Description">
Descricption
</th>
<th class="Size">
Size
</th>
<th class="PackSize">
Pack
<br />
Size
</th>
<th class="Price">
Price
</th>
<th class="RRP">
RRP
</th>
<th class="QTY">
QTY
</th>
</tr>
</table>
</div>
@foreach (var product in Model.Products)
{
<div class="item-box">
@Html.Partial("_ProductBox", product)
</div>
}
In _ProductBox
@model Nop.Web.Models.Catalog.ProductModel
<table style="width: 100%;"border="solid">
<tr class="product-item">
<td class="picture">
<a href="@Url.RouteUrl("Product", new { productId = Model.Id, SeName = Model.SeName })" title="@Model.DefaultPictureModel.Title">
<img style="border-width: 0px;" alt="@Model.DefaultPictureModel.AlternateText" src="@Model.DefaultPictureModel.ImageUrl" title="@Model.DefaultPictureModel.Title" />
</a>
</td>
<td class="StockCode">
@Model.StockCode
</td>
<td class="Description">
@Model.Name
</td>
<td class="Size">
@Model.Size
</td>
<td class="PackSize">
@Model.PackSize
</td>
<td class="WholesalePrice">
@Model.WholesalePrice
</td>
<td class="QTYINSTOCK">
@Model.QTYINSTOCK
</td>
<td class="RRP">
@Model.RRP
</td>
<td>
</td>
</tr>
</table>
The only difference I can see in the Database the products I was playing with before the insert of all are part of the ProductVariant table but this isn't a requirement in our case....
All help highly appreciated.
Richard