djreason Posted June 30, 2006 Posted June 30, 2006 can someone help me to get some additional text to show in my contact us section? The following is what my contact_us.php file reads and yet, the Text_Main is not showing up. php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<br><br><font size=4><center>We always welcome your calls and emails and try to answer our mail as soon as possible. Below is our contact information for your convenience:<br><br><br><br> Mesa Motor Sports<br><br> 7147 E Main St<br><br> Mesa, AZ 85207<br><br><br><br> Telephone: 480-924-5200<br><br><br><br> Our Business Hours:<br><br> 10am - 6pm Monday - Wednesday<br><br> 10am - 7pm Thursday-Friday<br><br> 12 Noon - 5pm Saturday<br><br> Please remember that while we are available to answer your questions, we do occasionally have walk-in customers or leave the shop during non-business hours.<br><br> If you email and don\'t get a response within 24 hours, please try again. Occasionally our host\'s email server seems to take a vacation or a reply may have bounced or been trapped within a spam filter for one reason or another. If your email address requires a "verification" process in order to receive a reply, approve our email address BEFORE you email us.<br><br> Sign your email with your name and a phone number where we can contact you. We will do our best to answer your questions in a timely fashion.<br><br> Consider it a personal favor or a kindly given request, but please read over the following before you email:<br><br> Please do not add us to your "favorites" list for jokes, email virus warnings, dire predictions, etc. We know you love to share and we also enjoy a good joke, but please ask first.<br><br> Do not send email "return receipt requested" unless you are returning a product Please purchase a virus protection program and keep it updated as recommended. The cost of these programs are well worth the expense when every day brings a new virus threat. Suspicious emails and those with no text in the body or subject line of the email are immediately deleted.<br><br> Thank you. Mesa Motor Sports'); 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); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Comments or Questions:'); ?> my store can be found at www.mesamotorsports.com/store Thanks in advance
djreason Posted June 30, 2006 Author Posted June 30, 2006 can someone help me to get some additional text to show in my contact us section? The following is what my contact_us.php file reads and yet, the Text_Main is not showing up. php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2002 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', '<br><br><font size=4><center>We always welcome your calls and emails and try to answer our mail as soon as possible. Below is our contact information for your convenience:<br><br><br><br> Mesa Motor Sports<br><br> 7147 E Main St<br><br> Mesa, AZ 85207<br><br><br><br> Telephone: 480-924-5200<br><br><br><br> Our Business Hours:<br><br> 10am - 6pm Monday - Wednesday<br><br> 10am - 7pm Thursday-Friday<br><br> 12 Noon - 5pm Saturday<br><br> Please remember that while we are available to answer your questions, we do occasionally have walk-in customers or leave the shop during non-business hours.<br><br> If you email and don\'t get a response within 24 hours, please try again. Occasionally our host\'s email server seems to take a vacation or a reply may have bounced or been trapped within a spam filter for one reason or another. If your email address requires a "verification" process in order to receive a reply, approve our email address BEFORE you email us.<br><br> Sign your email with your name and a phone number where we can contact you. We will do our best to answer your questions in a timely fashion.<br><br> Consider it a personal favor or a kindly given request, but please read over the following before you email:<br><br> Please do not add us to your "favorites" list for jokes, email virus warnings, dire predictions, etc. We know you love to share and we also enjoy a good joke, but please ask first.<br><br> Do not send email "return receipt requested" unless you are returning a product Please purchase a virus protection program and keep it updated as recommended. The cost of these programs are well worth the expense when every day brings a new virus threat. Suspicious emails and those with no text in the body or subject line of the email are immediately deleted.<br><br> Thank you. Mesa Motor Sports'); 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); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Comments or Questions:'); ?> my store can be found at www.mesamotorsports.com/store Thanks in advance Nevermind. I figured out what I was missing
vmtent Posted July 1, 2006 Posted July 1, 2006 What were you missing? I would like to know how to add text to the "Contact Us" page as well! :'(
djreason Posted July 1, 2006 Author Posted July 1, 2006 What were you missing? I would like to know how to add text to the "Contact Us" page as well! :'( Instead of the define TEXT_MAIN line, I changed it to define TEXT_INFORMATION and also had to edit the configure.php file to call to the TEXT_INFORMATION section. Worked like a charm. If you need me to, I can post exactly what I did and where I did it
vmtent Posted July 1, 2006 Posted July 1, 2006 Instead of the define TEXT_MAIN line, I changed it to define TEXT_INFORMATION and also had to edit the configure.php file to call to the TEXT_INFORMATION section. Worked like a charm. If you need me to, I can post exactly what I did and where I did it Yes, please! :thumbsup: I have my "Contact Us" file correct, but I don't know how to change the configure.php file!
djreason Posted July 1, 2006 Author Posted July 1, 2006 Yes, please! :thumbsup: I have my "Contact Us" file correct, but I don't know how to change the configure.php file! My apologies. It is not the configure.php that you edit to make this work. There are actually 2 contact_us.php files. One is located at /catalog/contact_us.php and the other is at /includes/languages/english/contact_us.php I am assuming that you edited the second one just fine. It is in the first location that I included that I added the key line to make this work. I will post both complete pages and point to the addition for you. includes/languages/english/contact_us.php <?php /* $Id: contact_us.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2002 osCommerce Released under the GNU General Public License */ define('TEXT_INFORMATION', '<font size=4><center>We always welcome your calls and emails and try to answer our mail as soon as possible. Below is our contact information for your convenience:<br><br> <p align=center>Mesa Motor Sports<br> 7147 E Main St<br> Mesa, AZ 85207<br><br> Telephone: 480-924-5200<br><br> Our Business Hours:<br> 10am - 6pm Monday - Wednesday<br> 10am - 7pm Thursday-Friday<br> 12 Noon - 5pm Saturday<br><br> Please remember that while we are available to answer your questions, we do occasionally have walk-in customers or leave the shop during non-business hours.<br><br> If you email and don\'t get a response within 24 hours, please try again. Occasionally our host\'s email server seems to take a vacation or a reply may have bounced or been trapped within a spam filter for one reason or another. If your email address requires a "verification" process in order to receive a reply, approve our email address BEFORE you email us.<br><br> Sign your email with your name and a phone number where we can contact you. We will do our best to answer your questions in a timely fashion.<br><br> Consider it a personal favor or a kindly given request, but please read over the following before you email:<br><br> Please do not add us to your "favorites" list for jokes, email virus warnings, dire predictions, etc. We know you love to share and we also enjoy a good joke, but please ask first.<br><br> Do not send email "return receipt requested" unless you are returning a product Please purchase a virus protection program and keep it updated as recommended. The cost of these programs are well worth the expense when every day brings a new virus threat. Suspicious emails and those with no text in the body or subject line of the email are immediately deleted.<br><br> Thank you. Mesa Motor Sports'); define('HEADING_TITLE', 'Contact Us'); define('NAVBAR_TITLE', 'Contact Us'); define('TEXT_SUCCESS', 'Your comment or question has been successfully sent to Mesa Motor Sports.'); define('EMAIL_SUBJECT', 'Website Question ' . STORE_NAME); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Comments or Questions:'); ?> /catalog/contact_us.php reads: <?php /* $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); $error = false; if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) { $name = tep_db_prepare_input($HTTP_POST_VARS['name']); $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']); $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']); if (tep_validate_email($email_address)) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address); tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success')); } else { $error = true; $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } } $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <td class="main"><?php echo TEXT_INFORMATION; ?></td> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php if ($messageStack->size('contact') > 0) { ?> <tr> <td><?php echo $messageStack->output('contact'); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) { ?> <tr> <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></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 width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } else { ?> <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> <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 width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> </table></form></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> I highlighted the new line in the /catalog/contact_us.php It is around line 67. I hope this works for ya. I basically compared it to the about_us.php files and figured out what was missing and added it. You can see it in action at http://mesamotorsports.com/store/contact_us.php
vmtent Posted July 1, 2006 Posted July 1, 2006 Awesome, worked like a champ! I'm in Chandler, so thanks from a fellow Arizonan! :thumbsup:
Benbo Posted December 28, 2007 Posted December 28, 2007 This may be an old post but it worked like a dream without to much technical knowledge required. Thanks for posting this it was much appreciated;)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.