Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding text to contact us page


ctlee15

Recommended Posts

Posted

Hello All,

 

I added the following text define into the language file using the following code in hopes of adding additional text to the Contact Us Page under the Enquiry text box. When the text it causes problems with the boxes on both sides of the page. One poster indicated this may be a design issue with the div tags. Has anyone else encounter this and have a solution?

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'Contact Us');

define('NAVBAR_TITLE', 'Contact Us');

define('TEXT_INFORMATION', 'PUT YOUR INFORMATION HERE.');

define('TEXT_SUCCESS', 'Your inquiry has been successfully sent to LGF Tactical.');

define('EMAIL_SUBJECT', 'Inquiry from ' . STORE_NAME);

 

define('ENTRY_NAME', 'Full Name:');

define('ENTRY_EMAIL', 'E-Mail Address:');

define('ENTRY_ENQUIRY', 'Product Inquiry:');

 

 

define('ERROR_ACTION_RECORDER', 'Error: An enquiry has already been sent. Please try again in %s minutes.');

?>

 

When I attempt to add in a call for that text define (in the main contact_us.php file) it disrupts the format of the left and right containers on the contact us page. Am I adding in the text define wrong?? Not sure what to do with the div tags..

 

Best,

 

Chris

Posted

It depends on what code you add and where what effect it has.

 

		  <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>

 

could become

 

		  <tr>
		    <td class="main"><?php echo ENTRY_ENQUIRY; ?></td>
		  </tr>
		  <tr>
		    <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
		  </tr>
		  <tr>
		    <td class="main"><?php echo [color=#ff0000]TEXT_INFORMATION[/color]; ?></td>
		  </tr>
	    </table></td>

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Thank you for your insight on this. I think I solved my problem by addiing the following code to the /contact_us.php file:

 

<tr>

<td class="main"><p>Put all new text here</p></td>

</tr>

 

I added this code snippet under the following line of code:

 

<div class="buttonSet">

<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

</div>

 

This allowed me to add additional text to my Contact Us page..

 

http://www.lgftactical.com/contact_us.php

 

Best,

 

Christopher

  • 2 weeks later...

Archived

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

×
×
  • Create New...