wancy Posted July 1, 2009 Share Posted July 1, 2009 Hi, I have added this define('TEXT_INFORMATION','If you have any enquiries, please do not hesitate to get in touch with us using the form at below. We will get back to you as soon as possible.'); in the file /includes/languages/english/contact_us.php. Content of the file --------------------- <?php /* $Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $ 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','If you have any enquiries, please do not hesitate to get in touch with us using the form at below. We will get back to you as soon as possible.'); define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.'); define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Enquiry:'); ?> But the text information did not display on my Contact Us page. Izit i have added wrongly? Please help. Thanks Link to comment Share on other sites More sharing options...
multimixer Posted July 1, 2009 Share Posted July 1, 2009 Well, you defined the text in the language file, thats fine. But now you need to let the contact_us.php know, if and where you want thus text to be displayed My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
wancy Posted July 1, 2009 Author Share Posted July 1, 2009 Hi, May i know how to let contact_us.php know where to display the text? Thanks. Link to comment Share on other sites More sharing options...
♥ecartz Posted July 1, 2009 Share Posted July 1, 2009 You have to add <?php echo TEXT_INFORMATION; ?> in the place where you want it to display. You may need to add HTML around it to get the formatting correct. Something like <tr> <td><?php echo TEXT_INFORMATION; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> would probably work right after the else in the HTML. Would look like <?php } else { ?> <tr> <td><?php echo TEXT_INFORMATION; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <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> Always back up before making changes. Link to comment Share on other sites More sharing options...
wancy Posted July 1, 2009 Author Share Posted July 1, 2009 Hi, I got it...thanks a lot ya! Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.