Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tables and columns help please!


unclefudgly

Recommended Posts

Hi All... first post and my heads reeling!!

 

I've spent hours searching and I'm going round in circles. I'm trying to redesign my site based on a template I was given, my site is at http://www.lucyj.co.uk/catalog/index.php.

 

If you look at the site, the main table is a creamy yellow and I want to chnage it's width to that of the table containing the content. Which files would control this?? Also I would really like to move the column from the right to the left.

 

 

Thanks for all your help

 

:blink:

Link to comment
Share on other sites

First off you have two different styles in your body tag.

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" style="background:#D8CDA9 url(images/bg.gif) repeat-y center;">

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" style="background:#F5F0E3 url(images/bg.gif) repeat-y center;">

 

Your main page looks ok. However, your product page has a different background color. I would remove the style and put if in stylesheet.css.

 

If looks like your layout is done with tables. See if you can find the main layout of your template and look for these.

 

 

<!-- body_text_eof //-->

<!-- right_navigation //-->

 

You want them switched. If you aren't sure try posting your main template file that has the above and something that looks like

 

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

Shade and Sweet Water

Chris Czerniak

Link to comment
Share on other sites

OK

 

I've switched all the refernces to left_navigation and added a column_left.php as below..

 

<?php

/*

$Id: column_left.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $

 

Released under the GNU General Public License

*/

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

}

 

require(DIR_WS_BOXES . 'search.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

 

include(DIR_WS_BOXES . 'currencies.php');

}

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

require(DIR_WS_BOXES . 'whats_new.php');

 

 

 

?>

 

It still doen't work... so what am I doing wrong??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...