Thanks for the guidance.
However, I would like to know, How did you add additional fields to the forms ?! I want to add multiple fields I.e. drop down, checkboxes radio buttons and couple of text boxes.
NopCommerce is now built using the MVC model (something I've had to try and teach myself about).
So you need to modify
Firstly the view contains the form elements, this is where you lay out the extra fields.
Then you need the model to also contain these fields.
The validator also gets extended to handle the extra fields.
So that's the front end. Next up it needs to be sent through to you so extend the controller to handle the extra fields and format your email as you want it.
The files are all listed in the post above that need changing. Have a go :)
Thanks for ur guidance I did the changes and it worked for me. J
now what I want to do is to store new fields on database!! I suppose you must have done these type of work. Can you please guide me on this as well.
Thanks again J,
I have only had the form email me, not store anything to the database. I imagine though you need to modify ContactUsSend in the CommonController.cs file.
I have tried figuring it out myself now, but got a bit lost. My idea would be to see how a newsletter subscription is added, as this must work with the database. The controller is NewsletterController.cs, which deals with Nop.Services.Messages.NewsLetterSubscriptionService.cs. This uses class of NesLetterSubscription defined in Nop.Core.Domain.Messages.NewsLetterSubscription.cs. Other than that I'm a bit lost at the moment, sorry.
Maybe someone else can help, or there is another thread on this forum about adding to the database.
I am new to Nopcommerece, i am working on v2.60 in that i want to develop one request a catalog form same as contactus form but add some more fields
i followed same as contactus page ( for that i created one requestsend view, requestsend Model, common controller and validation, routeprovider ) after that build application and debug that it's working fine when every click to send button at that time through error
[Unable to cast object of type 'Nop.Web.Models.Common.RequestModel' to type 'Nop.Web.Models.Common.ContactUsModel'.]
how can i overcome that error, if anyone help me..
Once check with standered applications
C:...\...\Presentation\Nop.Web\Views\Catalog\ProductRequestQuote.cshtml . how to flow the productrequestquote page like that can you create new contactus page.
i developed one website using nopcommerce V3.50 but i have one issue.
how to make another contact us form in nopcommerce v3.50 and this view show in footer because i want to display contact us form in whole pages in Footer section