Hi
How do you add an extra field to the contact form to include a customers telephone number?
[SOLVED]
If you want to create an entirely new contact form, I just released a Flexible Form extension that could do this. You can see it here:
http://www.getclearthinking.com/store/flexible-form
http://www.getclearthinking.com/store/flexible-form
Nice addition Johnathan but i was hoping for a bit of additional code to add one more field to the standard contact form ie(telephone number).This question has been posted a few times by various people with no answers. Surely OC should include such a basic request for someones telephone number in case the vender needs to discuss anything further before they purchase.
Something more like this?
http://www.cartsupport.co.uk/index.php? ... on/contact
http://www.cartsupport.co.uk/index.php? ... on/contact
Thanks Steve, that pointed me in the right direction and i have now sorted it! Her is what you do:
cat/view/theme/default(your temp)/template/information/contact tpl.
Find
And replace with
You can obviously change "telephone" for "surname" etc to suit.
Example : http://www.gallerysales.co.uk/index.php ... on/contact
cat/view/theme/default(your temp)/template/information/contact tpl.
Find
Code: Select all
<tr>
<td><?php echo $entry_name; ?><br />
<input type="text" name="name" value="<?php echo $name; ?>" />
<?php if ($error_name) { ?>
<span class="error"><?php echo $error_name; ?></span>
<?php } ?></td>
</tr>
<tr>
<td><?php echo $entry_email; ?><br />
<input type="text" name="email" value="<?php echo $email; ?>" />
<?php if ($error_email) { ?>
<span class="error"><?php echo $error_email; ?></span>
<?php } ?></td>
</tr>
Code: Select all
<tr>
<td>First Name:<br />
<input type="text" name="name" value="" />
</td>
</tr>
<tr>
<td>Telephone:<br />
<input type="text" name="telephone" value="" />
</td>
</tr>
<tr>
<td>E-Mail Address:<br />
<input type="text" name="email" value="" />
</td>
Example : http://www.gallerysales.co.uk/index.php ... on/contact
Who is online
Users browsing this forum: No registered users and 122 guests