Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

products_new.php -- do items expire?


caming

Recommended Posts

OK,

 

Given its title, "products_new.php" seems as though it would dump old products and only display new. And if that's the case, if nothing is added, would the page become obsolete?

 

What is the role of this page? Do items ever expire, or do they still remain active on a running page list (i.e. 1, 2, 3, 4 ...)

 

Please let me know!

 

Thanks,

 

Nate

Link to comment
Share on other sites

It will show your latest added products to the limit ste in admin, there is no date limit!!

 

To add a date limit:

 

add, near top of file:

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

 

and add to sql queries:

 

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...