Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why does "products_date_available" field sets to 0


danpersson

Recommended Posts

I have this really frustrating problem. Every once in a while, and I don't know what's triggering it, every product which releasedate has passed gets its product_date_available field updated to "0000-00-00 00:00:00".

 

This very bad since I use this value to pick the latest products and display them on the first page. :cry:

 

I understand that this will happen if you would update a single product because of the following piece of code found in admin/categories.php (about line 211) :

$products_date_available = (date('Y-m-d') < $products_date_available) ? $products_date_available : 'null';

But when does every product get updated?

 

I'm using Ian's excellent package based on osc snapshot 16th Febrauary 2003 and I would very much appreciate if someone has even the slightest clue of where, when or why this update occur!

 

Regards

Dan

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...