Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Osc 2.2 Date Available problem


JohnSpartan

Recommended Posts

Hello guys,

 

I've got a problem with Osc 2.2:

 

After some days OSC change date available to "0000-00-00".

 

The products with dates bigger than today stays at the value I've set, but the products with dates less are going to be updated to "0000-00-00". It's like one OSC function do this, without asking me. I've searched all classes, functions but I can't find where is the code for this update.

 

Hope someone can help me and I think this forum is the right place to ask :)

 

Thanks

Link to comment
Share on other sites

@@JohnSpartan

 

John

 

When ever you go into the admin option products expected this is run

 

tep_db_query("update " . TABLE_PRODUCTS . " set products_date_available = '' where to_days(now()) > to_days(products_date_available)");

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...