I would like to add a column to the order list that would allow me to see what state the customer is from.
I tried to edit the grid as follows:
Opened
Nop.Admin -> Views -> Order -> List.cshtml
added
columns.Bound(x => x.BillingAddress.StateProvinceName);
right after
columns.Bound(x => x.Id);
in the code. It looks like it should work but I get an error that says
"Microsoft JScript runtime error: Unable to get value of the property
'StateProvinceName': object is null or undefined"
If someone knows what I am doing wrong that would great. Thanks in advance!
I am using nopcommerce version 2.65