How do I add the following items to the contact us form page
contact_us.php:
company address
company phone number
company email
im sure its simple, ive tried searching for a solution but no go anyway any help would be great!
This is a discussion on add address/phone to contact us page within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; How do I add the following items to the contact us form page contact_us.php: company address company phone number company ...
How do I add the following items to the contact us form page
contact_us.php:
company address
company phone number
company email
im sure its simple, ive tried searching for a solution but no go anyway any help would be great!
Here's what I did:Originally Posted by gre_soul
in catalog/templates/your_template_name/content/contact_us.tpl.php, replace this:
with this:Code:<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>
then define your text in catalog/includes/languages/english/contact_us.php like this:Code:<tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="infoBox"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo CONTACT_US_OPTIONS; ?></td> <tr> <tr> <td class="main"><?php echo CONTACT_US_ADDRESS; ?></td> </tr> <tr> <td class="main"><?php echo CONTACT_US_FORM; ?></td> </tr> </table></td> </tr>
Just go through and insert your name, address, etc.Code:<?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 (c) 2002 osCommerce Released under the GNU General Public License */ 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('CONTACT_US_OPTIONS', '<br><strong>We\'d love to hear from you!</strong><br>We welcome your comments, questions, or feedback.<br><br>Feel free to contact us as follows:'); define('CONTACT_US_ADDRESS', Your Name<br>Company Name<br>Street Address<br>City, State Zip<br><br>Phone: 999-999-9999<br><a href="mailto:email@yourdomain.com">email: email@yourdomain.com</a><br><br>'); define('CONTACT_US_FORM', 'Or use the following form:'); define('ENTRY_NAME', 'Full Name:'); define('ENTRY_EMAIL', 'E-Mail Address:'); define('ENTRY_ENQUIRY', 'Enquiry:'); ?>
Hope this helps...
Bookmarks