Order List Missing Name of Customer

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 年 前
Hello Community,

Over the weekend we upgraded from version 4.0 to 4.3. One change that we noticed was that customer names are no longer included on the Orders grid.

Is there a setting somewhere to have the customer names displayed in the Orders grid?

Thank you.
3 年 前
I don't recall the name ever being there.  Just the email.  Did you customize?
3 年 前
No we don't have any customizations other than NopTemplates themes and plugins.

In 4.0 and prior in the Customer column is displayed |First-Name Last-Name (email)|.

Thanks!
3 年 前
You're right.  I guess I forgot.  It looks like they removed it.  You can add another column easily.  Edit
\Areas\Admin\Views\Order\List.cshtml

Add the bolded code (just above the other code for the CustomerEmail column):
gridModel.ColumnCollection.Add(new ColumnProperty(nameof(OrderModel.CustomerFullName))
{
    Title = T("Admin.Orders.Fields.Customer").Text,
    Width = "200"
});

gridModel.ColumnCollection.Add(new ColumnProperty(nameof(OrderModel.CustomerEmail))
{
    Title = T("Admin.Orders.Fields.Customer").Text,
    Width = "250",
    Render = new RenderLink(new DataUrl("~/Admin/Customer/Edit", nameof(OrderModel.CustomerId)))
});


(You may need to restart the site for it to take effect)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.