Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

3 columns on home page only?


varnco

Recommended Posts

I am trying to get 3 columns on my home page, so I can place Money Back Guarantee, credit card info, etc. boxes in the right column, but once a customer clicks on a category, I want the third column (far right) to go away.

 

I am currently running just two columns, by removing the third colum and table entirely.

 

If I add the 3rd column table and php coding, I get the third column on the home page, but I also get it on the checkout page, etc.

 

I'm obviously not fully understanding how the default.php page is built as well as shoppingcart.php, etc.

 

Any ideas?

 

Thanks.

Link to comment
Share on other sites

All the pages in your catalog directory include the following code:

 

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>

 

To remove the right column simply remove the above. To have the right column show only on the top level of you index.php page, replace the above with:

 

<?php if($category_depth == 'top') {
?>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
<?php
}
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...