Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Bestsellers.cshtml

@model BestsellerSearchModel

@{
    //page title
    ViewBag.PageTitle = T("Admin.Reports.Sales.Bestsellers").Text;
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Bestsellers");
}

@{
    var bestsellerSummaryColumnNumber = 2;

    const string hideSearchBlockAttributeName = "BestsellersPage.HideSearchBlock";
    var hideSearchBlock = await genericAttributeService.GetAttributeAsync(await workContext.GetCurrentCustomerAsync(), hideSearchBlockAttributeName);
}

@T("Admin.Reports.Sales.Bestsellers")

 
@await Html.PartialAsync("Table", new DataTablesModel { Name = "salesreport-grid", UrlRead = new DataUrl("BestsellersList", "Report", null), SearchButtonId = "search-salesreport", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, FooterCallback = !Model.IsLoggedInAsVendor ? "bestsellerfootercallback" : null, FooterColumns = !Model.IsLoggedInAsVendor ? 4 : 0, Filters = new List { new FilterParameter(nameof(Model.StartDate), typeof(DateTime?)), new FilterParameter(nameof(Model.EndDate), typeof(DateTime?)), new FilterParameter(nameof(Model.StoreId)), new FilterParameter(nameof(Model.OrderStatusId)), new FilterParameter(nameof(Model.PaymentStatusId)), new FilterParameter(nameof(Model.CategoryId)), new FilterParameter(nameof(Model.ManufacturerId)), new FilterParameter(nameof(Model.BillingCountryId)), new FilterParameter(nameof(Model.VendorId)) }, ColumnCollection = new List { new ColumnProperty(nameof(BestsellerModel.ProductName)) { Title = T("Admin.Reports.Sales.Bestsellers.Fields.Name").Text }, new ColumnProperty(nameof(BestsellerModel.TotalQuantity)) { Title = T("Admin.Reports.Sales.Bestsellers.Fields.TotalQuantity").Text }, new ColumnProperty(nameof(BestsellerModel.TotalAmount)) { Title = T("Admin.Reports.Sales.Bestsellers.Fields.TotalAmount").Text }, new ColumnProperty(nameof(BestsellerModel.ProductId)) { Title = T("Admin.Common.View").Text, Width = "100", ClassName = NopColumnClassDefaults.Button, Render = new RenderButtonView(new DataUrl("~/Admin/Product/Edit/")) } } })