Main Page - Featured products question

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 yıl önce
For 2.80, change your HomepageProducts.cshtml view to the following (change underlined, line 13):


@model IList<ProductOverviewModel>

@using Nop.Web.Models.Catalog;

@if (Model.Count > 0)
{
    <div class="product-grid home-page-product-grid">
        <div class="title">
            @T("HomePage.Products")
        </div>
        <div class="clear">
        </div>
        @foreach (var item in Model.OrderBy(x => Guid.NewGuid()).Take(6))
        {
            <div class="item-box">
                @Html.Partial("_ProductBox", item)
            </div>
        }
    </div>
}


.
11 yıl önce
Disregard this post, I didn't notice page 2.  Figured out another way to do it, but that's cleaner!

Thanks for the update!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.