Adding new customer address field

5 years ago
I want to add a new customer address field called "NumeroExterior" I have added the code in my CustomerModel.cs and _CreateOrUpdate.cshtml and in the database as well, along all the files that are required.


However I have the following error message:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'Nop.Admin.Models.Customers.CustomerModel' does not contain a definition for 'NumeroExteriorEnabled' and no extension method 'NumeroExteriorEnabled' accepting a first argument of type 'Nop.Admin.Models.Customers.CustomerModel' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 339:            </tr>
Line 340:        }
Line 341:  @if (Model.NumeroExteriorEnabled)
Line 342:        {
Line 343:            <tr>

Source File: e:\hostingspaces\darkog\ntmexico.com.mx\wwwroot\Administration\Views\Customer\_CreateOrUpdate.cshtml    Line: 341



I do now why, could you please help me?
5 years ago
Hi please check my article on following link.

https://ajaysaksena.wordpress.com/2014/04/22/add-custom-field-in-nopcommerce-table-changes-in-admin-panel/
5 years ago
Thank you,

I have done these changes, actually n this link is a different versión I am working now with 3.4 version
1 year ago
ajaysolanki wrote:

This article is now moved to new address

https://imajaysolanki.wordpress.com/2014/04/22/add-custom-field-in-nopcommerce-table-changes-in-admin-panel/
1 year ago
nubeame wrote:
Thank you,

I have done these changes, actually n this link is a different versión I am working now with 3.4 version


Have you looked here - Updating an existing entity. How to add a new property. http://docs.nopcommerce.com/pages/viewpage.action?pageId=1442499