Results 1 to 2 of 2

add address/phone to contact us page

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

      
  1. #1
    Lurker
    Join Date
    Jan 2005
    Posts
    3
    Rep Power
    0


    Default add address/phone to contact us page

    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!

  2. #2
    Member
    Join Date
    Dec 2004
    Posts
    75
    Rep Power
    8


    Default Re: add address/phone to contact us page

    Quote Originally Posted by gre_soul
    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:

    in catalog/templates/your_template_name/content/contact_us.tpl.php, replace 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>
    with 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>
    then define your text in catalog/includes/languages/english/contact_us.php like this:

    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:');
    ?>
    Just go through and insert your name, address, etc.

    Hope this helps...
    Brian Neuman
    Webmaster
    www.honeybeadjewelry.com

Similar Threads

  1. Contact US Page being SPAMMED
    By Impreza25r in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 02-18-2006, 05:37 PM
  2. How to Add Phone Number to Shipping Address?
    By nemail in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 08-09-2005, 03:54 PM
  3. add a field to contact us page
    By stevensdesign in forum osCMax v1.7 General Mods Discussion
    Replies: 1
    Last Post: 08-01-2005, 04:37 AM
  4. Resize text for Address and Phone#
    By rossco in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-12-2004, 10:30 AM
  5. What to add Contrib for contact us page
    By Kristine in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 04-08-2004, 02:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •