Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Contact Us In Left Column


Recommended Posts

Hello everybody.


I have been building a website that is basically used for Content Management which i have used oscommerce as it has everything you could possible need and works perfect.


Now the problem i have is this.


Instead of the contact_us form being on its own page i need it to be on the left coloumn instead. I can have the left coloumn any width i like so space is not an issue.


Does anybody have any ideas on how to do this.


Any help will be very much appreciated.


Thank You



Link to comment
Share on other sites

Hey Dean,


I haven't tried anything like this nor am I an expert with PHP, but I'll give it an educated guess.


NOTE: Backup your current files before making any changes!!!


Open catalog\includes\column_left.php (remember - make a backup!)


I don't know if you are using any infoboxes or not, but try the below code where you want the contact info to display.


Guess 1:

<?php require(FILENAME_CONTACT_US); ?>


Guess 2:

<tr><td><?php include(FILENAME_CONTACT_US); ?></td></tr>


Now open catalog\contact_us.php (remember - make a backup!)


Leave this code that's at the top of the file, deleting everything else:

 $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License


 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US); ?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">



Delete everything below it until this (unless you're using a captcha code, leave that) :

<!-- body_text //-->


Delete everything below this:

<!-- body_text_eof //-->


But leave this at the bottom:

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


You might need to make adjustments to different table elements (such as width) in the contact_us.php file.


Like I said, I'm not positive I have the correct calls (code) but it might be a starting point. huh.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

You are welcome Dean!


Just remember, I am only guessing. You might have to make some adjustments.


Let me know how you make out.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...