Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Limit New Products


NoddyAsh

Recommended Posts

Posted

Hi,

 

When I add new products for October I don't want old products showing up in the new products pages.

 

I've found these help files at http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/264

but they refer to the old version I think as the codes is shown different. Also dated Sept 2005.

 

Are there more up to date instructions somewhere to do the same thing?

 

Thanks for reading.

 

Russ

Posted

mod I do is add:

 

$date = strtotime("-90 days"); // set max age of displayed product
$date = strftime("%Y-%m-%d",$date);

 

then add to the query:

 

and p.products_date_added > '".$date."'

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.

Posted
mod I do is add:

 

$date = strtotime("-90 days"); // set max age of displayed product
$date = strftime("%Y-%m-%d",$date);

 

then add to the query:

 

and p.products_date_added > '".$date."'

 

Sorry, which files are to edit?

 

Ta.

Posted
Sorry, which files are to edit?

 

Ta.

 

 

products_new.php and includes/modules/new_products.php

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.

Posted
products_new.php and includes/modules/new_products.php

 

K thanks.

 

Still new at this so is it obvious where the changes in the file actually go?

 

Sorry to be dim.

 

Russ

Archived

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

×
×
  • Create New...