Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Question


Rob Petterson

Recommended Posts

Posted

I want to keep all boxes on the LHS and RHS of the main page. However, I would like to be able to remove the boxes on the RHS as soon as you click a product. In other words I want the product listings table to expand over where the original boxes were.

I have managed to do this on other pages eg checkout etc (just by commenting out .....column_right.php).

But the problem I'm having is that the product listings seem to be in default.php which is also where the main page is located. If I remove the boxes from here, it will mean that no boxes will be shown in the main page.

Confused? Same here!

 

Rob

Sometimes I think I understand everything, then I regain consciousness

Posted

Try this:

 

<!-- right_navigation //--> 

<?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"> 

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

<!-- right_navigation_eof //-->

 

Please backup your file.

Posted

Thanks for the code Matti.

Can you just confirm what this piece of code actually does?

Also,

Do I implement this in default.php?

 

Thanks for your help,

 

Rob

Sometimes I think I understand everything, then I regain consciousness

Posted

Yes, the code goes in default.php and replaces the current right navigation code. What it does is to call column_right.php and format the right column table only at the top of the category tree... ie. the default page

Posted

Looks straight forward enough. Thanks again. I'll try it out tonight when I get home.

Sometimes I think I understand everything, then I regain consciousness

Posted

Just remember to also remove the right column table formatting - it is found in the line above the beginning of the right navigation.

Posted

Good point, I'll edit the table as well.

Actually, while we're on the subject of tables, do you know how to alter the code in the <table> (can't remember the file coz I'm at work.. (product_info.php ??) - it's the file that is used when you click on a product in the product list, which then just displays that selected product anyway.

Instead of the text appearing on the left with the image on the right, I'd like to have their positions swapped round the other way. I'd also like to to disable the hyperlink on the image and get rid of the 'click to enlarge' text.

Any ideas?

 

Thanks, Rob

Sometimes I think I understand everything, then I regain consciousness

Archived

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

×
×
  • Create New...