Try your search with a different keyword or use * as a wildcard.
@model ProductModel
@inject IStoreService storeService
@using Nop.Core.Domain.Catalog;
@using Nop.Services
@using Nop.Services.Stores
@{
var stores = await storeService.GetAllStoresAsync();
}
@* resources for product tags input *@
@(await Html.LocalizedEditorAsync("product-info-localized",
@
,
@
))
@if (Model.Id > 0 && Model.AssociatedToProductId > 0)
{
}
@T("Admin.Catalog.Products.AssociatedProducts")
@if (Model.Id > 0)
{
-
@T("Admin.Catalog.Products.AssociatedProducts.Note1")
-
@T("Admin.Catalog.Products.AssociatedProducts.Note2")
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "associatedproducts-grid",
UrlRead = new DataUrl("AssociatedProductList", "Product", new RouteValueDictionary { [nameof(Model.AssociatedProductSearchModel.ProductId)] = Model.AssociatedProductSearchModel.ProductId }),
UrlDelete = new DataUrl("AssociatedProductDelete", "Product", null),
UrlUpdate = new DataUrl("AssociatedProductUpdate", "Product", null),
Length = Model.AssociatedProductSearchModel.PageSize,
LengthMenu = Model.AssociatedProductSearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(AssociatedProductModel.ProductName))
{
Title = T("Admin.Catalog.Products.AssociatedProducts.Fields.Product").Text
},
new ColumnProperty(nameof(AssociatedProductModel.DisplayOrder))
{
Title = T("Admin.Catalog.Products.AssociatedProducts.Fields.DisplayOrder").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Editable = true,
EditType = EditType.Number
},
new ColumnProperty(nameof(AssociatedProductModel.Id))
{
Title = T("Admin.Common.View").Text,
Width = "150",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonView(new DataUrl("~/Admin/Product/Edit/", nameof(AssociatedProductModel.Id)))
},
new ColumnProperty(nameof(AssociatedProductModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "200",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
},
new ColumnProperty(nameof(AssociatedProductModel.Id))
{
Title = T("Admin.Common.Delete").Text,
Width = "100",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})
}
else
{
@T("Admin.Catalog.Products.AssociatedProducts.SaveBeforeEdit")
}
@await Component.InvokeAsync(typeof(AclDisabledWarningViewComponent))
@await Component.InvokeAsync(typeof(MultistoreDisabledWarningViewComponent))
@Html.ValidationMessageFor(model => model.RequiredProductIds)