Try your search with a different keyword or use * as a wildcard.
@model ProductAttributeMappingModel
@using Nop.Core.Domain.Catalog
@using Nop.Services.Catalog
@if(Model.Id > 0)
{
@T("Admin.Catalog.Products.ProductAttributes.Attributes.Condition.Description")
@if (Model.ConditionModel.ProductAttributes.Count > 0)
{
var attributesList = new List();
foreach (var attribute in Model.ConditionModel.ProductAttributes)
{
attributesList.Add(new SelectListItem { Text = attribute.Name, Value = attribute.Id.ToString() });
}
@foreach (var attribute in Model.ConditionModel.ProductAttributes)
{
var controlId = $"{NopCatalogDefaults.ProductAttributePrefix}{attribute.Id}";
@switch (attribute.AttributeControlType)
{
case AttributeControlType.DropdownList:
{
}
break;
case AttributeControlType.RadioList:
case AttributeControlType.ColorSquares:
case AttributeControlType.ImageSquares:
{
foreach (var attributeValue in attribute.Values)
{
}
}
break;
case AttributeControlType.Checkboxes:
{
foreach (var attributeValue in attribute.Values)
{
}
}
break;
case AttributeControlType.ReadonlyCheckboxes:
case AttributeControlType.TextBox:
case AttributeControlType.MultilineTextbox:
case AttributeControlType.Datepicker:
case AttributeControlType.FileUpload:
default:
//not supported as conditions
break;
}
}
}
else
{
No attribute exists that could be used as condition
}
}
else
{
@T("Admin.Catalog.Products.ProductAttributes.Attributes.Condition.SaveBeforeEdit")
}