I've added new string property in OrderModel.cs in Nop\Admin\Models\OrderModel.cs file.
I want to see the value of the mentioned property in _OrderDetails.Shipping.cshtml, after I build the project it works fine but after some time when I try to go this view I get the following error:
%%%/Administration\Views\Order\_OrderDetails.Shipping.cshtml(190): error CS1061: 'Nop.Admin.Models.Orders.OrderModel' does not contain a definition for 'StorePickUpAddress' and no extension method 'StorePickUpAddress' accepting a first argument of type 'Nop.Admin.Models.Orders.OrderModel' could be found (are you missing a using directive or an assembly reference?)
The new property in OrderModel.cs file declared as follows:
public string StorePickUpAddress { get; set; }
The additional row in the table in _OrderDetails.Shipping.cshtml look as follows:
<tr>
<td class="adminTitle">
@Html.NopLabelFor(model => model.StorePickUpAddress):
</td>
<td class="adminData">
@Model.StorePickUpAddress
</td>
</tr>
Can anyone help me with this issue?
Thanks.