Hey Guys,
I am very new to PHP, I am building a osCommerce based site, and I am using code based off another project.
http://209.8.31.122/
Contents of Complete Source are at the bottom of post.
I like the way the site is, EXCEPT, the new products for %s column. It does not make sense for the site, except the front page.
If I would like to remove the New Products for %s column from the whole website except front, I understand I need to remove the column from the column_left.php file.
However, where would I need to re-insert it into the index.php, to make it look right?
I figured out how to do it like this:
- Delete from column_left.php:
<TD width="3"><?php echo tep_draw_separator('pixel_trans.gif', '3', '100%'); ?></TD>
<TD width="184" valign="top"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
<TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
<?php
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
}
?>
</TABLE>
</TD>
<TD width="3"><?php echo tep_draw_separator('pixel_trans.gif', '3', '100%'); ?></TD>
1. Paste into index.php:
<TD width="3"><?php echo tep_draw_separator('pixel_trans.gif', '3', '100%'); ?></TD>
<TD width="184" valign="top"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
<TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
<?php
if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
include(DIR_WS_BOXES . 'languages.php');
}
?>
</TABLE>
</TD>
<TD width="3"><?php echo tep_draw_separator('pixel_trans.gif', '3', '100%'); ?></TD>
2. Under this line:
if (COLUMN_LEFT_DISPLAY == 'true') {
echo '<!-- left_navigation //-->';
require(DIR_WS_INCLUDES . 'column_left.php');
echo '<!-- left_navigation_eof //-->';
}
?>
However, it is still under every page, because every page uses index.php
I probably need to insert it further down the code. However, I have been unsuccessful so far, because it does not insert into the right table.
What would you suggest?
Thank you so much in advance!
Ben