osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 04-08-2005, 08:37 AM
Lurker
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gre_soul
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 04-08-2005, 10:11 AM
Member
 
Join Date: Dec 2004
Posts: 75
Thanks: 0
Thanked 3 Times in 2 Posts
Rep Power: 4
bdneuman is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax