Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove 'new products' section form product pages.


Num85

Recommended Posts

Posted

How can oscommerce stores be edited so that the 'New Products for Month' listing is no longer displayed on category/product pages such as this one

 

I would like to remove all instances of this to focus more on the featured products that I have placed on the site.

Posted

Hi,

 

Depending on which 'featured products' contribution you have installed, in most cases the featured products contributions replace the new products box. Some contributions have alternate code to allow you to edit whether to display only featured products or both featured products and new products.

 

The one I usually use is:

 

http://addons.oscommerce.com/info/651

 

 

 

Good luck

 

 

 

Chris

Posted

Go at catalog->index.php and find this code at near the bottom(at line 311).

 

include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);

 

then replace to this code

 

#include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);

 

and you're done

Posted

Thanks for the replies, I had removed the section in question from index.php however it also appears on the category pages.

 

Looking at the source code being generated client side it gives the following:

 

<!-- new_products //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="contentBoxHeading"><img src="images/contentBox/corner_left.gif" width="11" height="14" border="0" alt=""></td>
<td height="14" class="contentBoxHeading" width="100%">New Products For July</td>
<td height="14" class="contentBoxHeading"><img src="images/contentBox/corner_right_left.gif" width="11" height="14" border="0" alt=""></td>
 </tr>

</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="contentBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="4" class="contentBoxContents">
</table>
</td>
 </tr>
</table>
<!-- new_products_eof //-->

 

Not too sure which file needs to be edited to remove this.

  • 3 weeks later...
Posted

There are 2 of <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> in index, remove both.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Archived

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

×
×
  • Create New...