Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page Layout


dothanbydesign

Recommended Posts

New products box at bottom of the page (Index.php I think) below the boxes on the left, where do I edit the size of that box. I need it come all the way across the page as the top bar does. Also the bar at the bottom with the date and time needs to cover the width of the page.

Link to comment
Share on other sites

Near the bottom of index.php you have this code:

 

		  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

 

Remove that code then look further down the page for this:

 

<!-- body_eof //-->

<!-- footer //-->

 

Just above or below that, add this:

 

<table width="100%">
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>
</table>

 

The bottom bar should expand across the full width of the page by default so you must have changed something for it not to do so.

Link to comment
Share on other sites

Near the bottom of index.php you have this code:

 

		  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>

 

Remove that code then look further down the page for this:

 

<!-- body_eof //-->

<!-- footer //-->

 

Just above or below that, add this:

 

<table width="100%">
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
	  </tr>
</table>

 

The bottom bar should expand across the full width of the page by default so you must have changed something for it not to do so.

Link to comment
Share on other sites

Here is bottom of the code on the index page

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="main"><?php echo tep_customer_greeting(); ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><?php echo TEXT_MAIN; ?></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

 

</table></td>

<?php

}

?>

<!-- body_text_eof //-->

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

<!-- body_eof //-->

 

<!-- footer //-->

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

<!-- footer_eof //-->

<br>

</body>

</html>

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

Link to comment
Share on other sites

It looks like, while you have been editing, you have removed or failed to put in a closing </table> tag somewhere in index.php. The other pages, like contact_us, shipping etc, are working fine.

 

Try adding some indiscriminate ending tags from the bottom, working up. Or you can search for an unclosed <table> or <tr>. Comparing your file to a stock one might help with that

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...