Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a text line on the contact_us.php page?


Guest

Recommended Posts

Posted

Good morning,

 

I'm struggling to get another text line to appear on the contact_us.php page and could do with some guidance please.

 

It's a standard looking page at the moment with the fields to put your name, email address and your enquiry for submitting which is fine and I wish to keep that. I want to however add our company name, address and phone number also should people want to pick up the phone etc.

 

I have tried to add

define('TEXT_INFORMATION', 'Shipping & Returns');

but with no joy.

 

Please can anyone help.

 

Many thanks

 

Chris

Posted

Hi

 

If you want to add more input field to the contact us form, you can read this topic --> email issues

 

If you want to add plain text to the page, do following

 

1) in file contact_us.php, find the lines

      <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td class="main"><?php echo ENTRY_NAME; ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo tep_draw_input_field('name'); ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo ENTRY_EMAIL; ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo tep_draw_input_field('email'); ?></td>
             </tr>
             <tr>
               <td class="main"><?php echo ENTRY_ENQUIRY; ?></td>
             </tr>
             <tr>
               <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>

 

This is the display of the input fields. Depending on where you want your text to appear, you need to say something like

              <tr>
               <td class="main"><?php echo CONTACT_PAGE_TEXT; ?></td>
             </tr>

(the <tr><td> placement is up to you

 

2) in your language file (ie includes/languages/english/contact_us.php you need to define this text as follows

define('CONTACT_PAGE_TEXT', 'write into here whatever you want, remember to say it\'s and not it's. You can have<b>bold</b> or a <br> break');

 

Enjoy:)

Posted

Have a look for Contact Us Super Enhancement V1.42 in add-ons - it does everything you are asking for and a bit more you haven't thought you needed ;)

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...