More

    NopCommerce – To hide all sub category display on Category Page

    To do this,  comment/remove following code lines from “CategoryTemplate.ProductsInGridOrLines” template

    @if (Model.SubCategories.Count > 0)
            {
                <div class="sub-category-grid">
                    @foreach (var item in Model.SubCategories)
                    {
                        <div class="item-box">
                            <div class="sub-category-item">
                                <h2 class="title">
                                    <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })" title="@item.PictureModel.Title">
                                        @item.Name</a>
                                </h2>
                                <div class="picture">
                                    <a href="@Url.RouteUrl("Category", new { SeName = item.SeName })" title="@item.PictureModel.Title">
                                        <img alt="@item.PictureModel.AlternateText" src="@item.PictureModel.ImageUrl"
                                             title="@item.PictureModel.Title" /></a>
                                </div>
                            </div>
                        </div>
                    }
                </div>
            }

    Recent Articles

    spot_img

    Related Stories

    Stay on op - Ge the daily news in your inbox