Need Help to make custom form and also need to add extra field in contact us form

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
1 year ago
Hello Team,

I want to make a form in nopcommerce with some custom field and add some new field in the contact us form.
So how can I able to do that?
1 year ago
The contact us form is here
See Source\Presentation\Nop.Web\Views\Common\ContactUs.cshtml

You can add new fields to the Model and change the .cshtml file to display and receive values
Then change the controller to receive the values and send in the email
See Source\Presentation\Nop.Web\Controllers\CommonController.cs
1 year ago
Thank you Yidna,

And if want to add a new form like INQUIRY, how can I able to do that?
1 year ago
The hard way is to copy and paste similar code / forms like the Contact Us form
Duplicate and rename the views, controller and models and add a new route

The simple way is to use  Form Builder Plugin - For example see  https://www.nopcommerce.com/en/extensions?searchterm=forms
1 year ago
Thank you Yidna.
1 year ago
If i make new form, but where to display that form? how can I able to do setting in nopcommerce?
1 year ago
chandnishah.equalefforts wrote:
If i make new form, but where to display that form? how can I able to do setting in nopcommerce?


1. In Admin Panel,
Content Management> Topics> ContactUs

2. In Codebase,
Nop.Web > Views > Common > ContactUs.cshtml

3. If you want to change the text of the default nopcommerce contact us page and mail box, then you can do that from:
Admin panel > Configurations > Languages > Edit > String Resource

//if you find this post helpful please up vote :)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.