Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding / Removing boxes


Rob Petterson

Recommended Posts

Posted

Is it possible for me to remove certain boxes say, from the RHS of the cart when a user goes to say products or shopping cart etc.?

I'd like to be able to show all the boxes in the main page, but on products page just have the boxes on the LHS and have the products table(which sits in the middle of the LHS and RHS boxes) expanding to fill right to the RHS of the screen (where the boxes used to be).

 

Any ideas?

Sometimes I think I understand everything, then I regain consciousness

Posted

I thnk the easiest way to do this would be to create an alt_column_right.php with the boxes you want in, then call that in place of column_right.php in each of the pages you want to change.

Posted

Thanks Lynda,

I'll give it a try. It sounds like it will do the trick.

I basically only want the boxes on the RHS to be displayed on the main page. I spose I could just remove the line of code from each file that calls column_right.php ??

Sometimes I think I understand everything, then I regain consciousness

Posted

If you want the main text to spead out to fill the space you'll need to remove the table that sits round the column_right.php, or you'll have blank space. But yes, you just remove those few lines from each file you want to alter. If you want to be cautious you can comment it out instead, so that you can restore the column more easily if you change your mind.

Posted

Thanks for that Lynda.

Is it just from default.php file that I have to remove the table that sits round the column_right.php or are there other files I have to edit this table as well?

Sometimes I think I understand everything, then I regain consciousness

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

 </tr>

</table>

is the code you need to look for. Use the find in files function on your text editor to find all the files it occurs in & delete it from the ones where you DONT want column_right.php to appear. If you want it to appear in the main page, leave it in default.php

Posted

Thanks very much for the additional information Lynda. :)

 

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