Post by xl5 » Mon Jul 18, 2011 5:18 pm

Hi
How do you add an extra field to the contact form to include a customers telephone number?
??? [SOLVED]
Last edited by xl5 on Fri Jul 22, 2011 3:52 pm, edited 1 time in total.

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by uksitebuilder » Mon Jul 18, 2011 10:13 pm


ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by xl5 » Tue Jul 19, 2011 2:47 pm

Hi
My OC is 1.4.9.1 any ideas? Would the code work on this? :-\

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by uksitebuilder » Tue Jul 19, 2011 2:57 pm

pass, I am a late starter with OC and only started using at 1.5.0.1

ImageImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by xl5 » Tue Jul 19, 2011 3:06 pm

Same here, but thanks for your reply. :-\

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by Johnathan » Wed Jul 20, 2011 12:17 am

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

Image
Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by xl5 » Wed Jul 20, 2011 4:47 pm

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. :-\

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by xl5 » Fri Jul 22, 2011 2:09 pm

Thats it, but instead of "surname" i would like "Tel." Have you the code?
Cheers :)

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm


Post by xl5 » Fri Jul 22, 2011 3:40 pm

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

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>
And replace with

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>
You can obviously change "telephone" for "surname" etc to suit. ;)
Example : http://www.gallerysales.co.uk/index.php ... on/contact

xl5
New member

Posts

Joined
Mon Jul 18, 2011 3:45 pm

Who is online

Users browsing this forum: No registered users and 3 guests