Webiant Logo Webiant Logo
  1. No results found.

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

AddProductToOrderDetails.cshtml

@model AddProductToOrderModel

@using Nop.Core.Domain.Catalog

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

@*we add enctype = "multipart/form-data" because "File upload" attribute control type requires it*@

@string.Format(T("Admin.Orders.Products.AddNew.Title2").Text, Model.Name, Model.OrderId) @T("Admin.Orders.Products.AddNew.BackToList")

 
@if (Model.Warnings.Count > 0) {
    @foreach (var warning in Model.Warnings) {
  • @warning
  • }
}
@if (Model.ProductType == ProductType.SimpleProduct) {
var dataDict = new ViewDataDictionary(ViewData) { new KeyValuePair("productId", Model.ProductId) }; @await Html.PartialAsync("_ProductAddAttributes", Model.ProductAttributes, dataDict) var dataDictGiftCard = new ViewDataDictionary(ViewData); dataDictGiftCard.TemplateInfo.HtmlFieldPrefix = $"giftcard_{@Model.ProductId}"; @await Html.PartialAsync("_ProductAddGiftCardInfo", Model.GiftCard, dataDictGiftCard) @await Html.PartialAsync("_ProductAddRentalInfo", Model)
@if (!Model.AutoUpdateOrderTotals) {

@T("Admin.Orders.Products.AddNew.UpdateTotals")

}
} else if (Model.ProductType == ProductType.GroupedProduct) {
Grouped products are not currently supported for adding to an existing order
} else {
This product type (unknown) is not currently supported for adding to an existing order
}