EZ way to add a phone field to the "Contact Us" page.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 anos atrás
V 3.0
Does anybody know and easy way to add a phone field to the "Contact Us" page?
10 anos atrás

<div class="inputs">
  <label for="Telephone">Telephone</label>
  <div class="input-box">
    <input id="Telephone" type="text" name="Telephone" value="" style="width:250px;"/>
   </div>
</div>
9 anos atrás
marc wrote:

<div class="inputs">
  <label for="Telephone">Telephone</label>
  <div class="input-box">
    <input id="Telephone" type="text" name="Telephone" value="" style="width:250px;"/>
   </div>
</div>


Hi Marc,

I have a couple questions about the script?

1: I am now using 3.3. Will that code still work?
2: Where do I put that script? You didnt state where it goes?

Thank you,
9 anos atrás
(I don't know if marc was being facetious, but ...)

Putting just HTML in the view will only collect the field entered, but won't do anything with it.  You'll need JavaScript to inject(append) it into the Enquiry textarea, or you need to modify Model & Controller too (the latter requires VS).

\Presentation\Nop.Web\Views\Common\ContactUs.cshtml
9 anos atrás
New York wrote:
(I don't know if marc was being facetious, but ...)

Putting just HTML in the view will only collect the field entered, but won't do anything with it.  You'll need JavaScript to inject(append) it into the Enquiry textarea, or you need to modify Model & Controller too (the latter requires VS).

\Presentation\Nop.Web\Views\Common\ContactUs.cshtml


Thats a Bummer. I guess I dont get a phone field! hehehe

Thanks for your input....
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.