I would like to add some fields to the registration form on my website. I want those to be attached to the member, and I would like to have them in the registration process. The fields I want to add are "Make", "Model", "Serial Number".
Hello, I must also add the fields in the registration form as the tax code and VAT. The fields should be mandatory. How can I do?. Thanks for your help
1. Add the property to your entity class in Nop.Common (e.g. Customer.cs) 2. Add the property to your DB Entity class in Nop.DataAccess (e.g. DBCustomer.cs) 3. Update the DBMapping function in your EntityManager to map the new fields from data entity to business objects (e.g. CustomerManager) 4. Update your insert and update methods in DBEntityProvider (e.g. DBCustomerProvider) to include the new parameter. 5. Update your insert and update methods in EntityManager to include a parameter for your new field (e.g. CustomerManager) and pass this to your updated DBEntityProvider methods 6. Update insert and update methods in Sql provider (e.g. SqlCustomerProvider) to accept new parameter (and pass to stored proc) 7. Update GetEntityFromReader methods in Sql provider to map new field from database. 8. Modify EntityInsert and EntityUpdate stored procs to accept new parameter (select procs should be okay since most of them are select *)
Think that's it.
Admittedly I have to agree with those in favour of using ORM technologies, in that the above process is a bit long winded to add one field. However I have done a lot of work with the nopCommerce architecture recently that make extending the nopCommerce providers much easier. With the changes I plan to implement it would only be necessary to update the Business/DB entity objects with the new field, the business insert/update methods with the new parameter and the business/sql mappings.
Hello, sorry if i reup an old post, but i want to renew the question. I simply don't find the files and classes you kindly mentioned, perhaps something changed in the structure?