//a vendor does not have access to this functionality if (!Model.IsLoggedInAsVendor) { gridModel.ColumnCollection.Add(new ColumnProperty(nameof(OrderModel.OrderTotal)) { Title = T("Admin.Orders.Fields.OrderTotal").Text, Width = "100", }); }
you can add a new column gridModel.ColumnCollection.Add(new ColumnProperty(nameof(OrderModel.OrderSubtotalInclTax)) { Title = T("Admin.Orders.Fields.OrderSubtotalInclTax").Text, Width = "100", }); Depends on what value you wan to show
public string OrderSubtotalInclTax { get; set; } public string OrderSubtotalExclTax { get; set; } public string OrderSubTotalDiscountInclTax { get; set; } public string OrderSubTotalDiscountExclTax { get; set; }
you can add a new column gridModel.ColumnCollection.Add(new ColumnProperty(nameof(OrderModel.OrderSubtotalInclTax)) { Title = T("Admin.Orders.Fields.OrderSubtotalInclTax").Text, Width = "100", }); Depends on what value you wan to show
public string OrderSubtotalInclTax { get; set; } public string OrderSubtotalExclTax { get; set; } public string OrderSubTotalDiscountInclTax { get; set; } public string OrderSubTotalDiscountExclTax { get; set; }
Ok yes sorry the fields are in the model but not populated in Admin You would need to populate the fields in the Factory routine public virtual async Task<OrderListModel> PrepareOrderListModelAsync(OrderSearchModel searchModel) in src\Presentation\Nop.Web\Areas\Admin\Factories\OrderModelFactory.cs
//a vendor does not have access to this functionality if (!Model.IsLoggedInAsVendor) { gridModel.ColumnCollection.Add(new ColumnProperty(nameof(OrderModel.OrderTotal)) { Title = T("Admin.Orders.Fields.OrderTotal").Text, Width = "100", }); }