Webiant Logo Webiant Logo
  1. No results found.

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

AddProductToOrder.cshtml

@model AddProductToOrderSearchModel

@{
    //page title
    ViewBag.PageTitle = string.Format(T("Admin.Orders.Products.AddNew.Title1").Text, Model.OrderId);
    //active menu item (system name)
    NopHtml.SetActiveMenuItemSystemName("Orders");
}

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

@string.Format(T("Admin.Orders.Products.AddNew.Title1").Text, Model.OrderId) @T("Admin.Orders.Products.AddNew.BackToOrder")

 
@await Html.PartialAsync("Table", new DataTablesModel { Name = "products-grid", UrlRead = new DataUrl("AddProductToOrder", "Order", new RouteValueDictionary { [nameof(Model.OrderId)] = Model.OrderId }), SearchButtonId = "search-products", Length = Model.PageSize, LengthMenu = Model.AvailablePageSizes, Filters = new List { new FilterParameter(nameof(Model.SearchProductName)), new FilterParameter(nameof(Model.SearchCategoryId)), new FilterParameter(nameof(Model.SearchManufacturerId)), new FilterParameter(nameof(Model.SearchProductTypeId)) }, ColumnCollection = new List { new ColumnProperty(nameof(ProductModel.Id)) { Title = T("Admin.Common.Select").Text, Render = new RenderCustom("renderColumnSelectProduct"), ClassName = NopColumnClassDefaults.Button, Width = "50", }, new ColumnProperty(nameof(ProductModel.Name)) { Title = T("Admin.Orders.Products.AddNew.Name").Text, Width = "400" }, new ColumnProperty(nameof(ProductModel.Sku)) { Title = T("Admin.Orders.Products.AddNew.SKU").Text, Width = "100" } } })