BlizzardBoy Posted October 1, 2006 Posted October 1, 2006 Hello, You know on the stock site how you see at the bottom left corner under the information box, you have the contact us link? Alright, when you click on it, it takes you to the contact_us.php file. When I go there, I see a box for Full Name, Email, etc. What I want to know is how to add in text above these boxes - like a phone number. I've tried adding in: define('TEXT_INFORMATION', 'My Text Here.'); and it didn't work. What do I need to do to get text on the screen?
pyramids Posted October 1, 2006 Posted October 1, 2006 Check out the contributions. Here is one, there are more: http://www.oscommerce.com/community/contri...arch,contact+us
tapuahk Posted October 1, 2006 Posted October 1, 2006 Hello, You know on the stock site how you see at the bottom left corner under the information box, you have the contact us link? Alright, when you click on it, it takes you to the contact_us.php file. When I go there, I see a box for Full Name, Email, etc. What I want to know is how to add in text above these boxes - like a phone number. I've tried adding in: define('TEXT_INFORMATION', 'My Text Here.'); and it didn't work. What do I need to do to get text on the screen? Defining is great but you need to edit the contact_us.php page to echo that variable or after the line that says <!-- body_text //--> in the contact_us.php in the "catalog" directory add <?php echo TEXT_INFORMATION; ?><br /> Let me know if this helped, Tapuahk
BlizzardBoy Posted October 1, 2006 Author Posted October 1, 2006 Yup that seems to do the trick, Tapuahk! Thank you.
Jin3001 Posted October 1, 2006 Posted October 1, 2006 Defining is great but you need to edit the contact_us.php page to echo that variable orafter the line that says <!-- body_text //--> in the contact_us.php in the "catalog" directory add <?php echo TEXT_INFORMATION; ?><br /> Let me know if this helped, Tapuahk <?php define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your enquiry has been successfully sent to the Store Owner.'); define('EMAIL_SUBJECT', 'Enquiry from ' . STORE_NAME); <?php echo TEXT_INFORMATION; ?><br /> (my contact here) define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Enquiry:'); ?> like that?? but it didn't work!! it's say line 6 got problem
nvedia Posted October 1, 2006 Posted October 1, 2006 You cant use tags inside tags in php and secondly you are editing the wrong file!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.