Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Disable "New Products in February" Table


Guest

Recommended Posts

In catalog/index.php find:

<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>

and change to this:

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

on line 121 and 313

 

The_Bear

Link to comment
Share on other sites

Thank you so much, I have been searching for this for over 3 hours. checked the forums here, the wiki documentation, contributions, yours is the first post I have found that actually works and I was so close. I didnt realize there were two lines that had to be edited. Thanks so much again - this is great :)

Link to comment
Share on other sites

  • 2 weeks later...

I haven't noticed that the first instantiation of the line does anything but I could be wrong. In my own testing it hasn't affected me.

 

But in any event if you change the codes for both to this:

 

<?php if (MAX_DISPLAY_NEW_PRODUCTS!=0) {include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);} ?>

 

the new products box will disappear altogether if you set the maximum value for the 'New Products Module' in Admin/Configuration/Maximum Values to 0.

 

This way you don't have to edit code in the future to turn in back on, all you have to do is change the value to the number of products you wish to see as new products.

 

B)

Regards,

John

Regards,

John

 

"There is nothing like a little successful tinkering to bring out the looney mad scientist in all of us. Brohoohoohoooohaahaahaaahahaaaaaaaaaa!"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...