Crazy-P Posted March 22, 2012 Share Posted March 22, 2012 Hei all prestashoppers I can't find the file and line where prestashop updates the product's "date_upd" in the back office when updating a product. Anyone knows where it is ? Link to comment Share on other sites More sharing options...
El Patron Posted March 22, 2012 Share Posted March 22, 2012 what version of ps? Link to comment Share on other sites More sharing options...
Rhapsody Posted March 22, 2012 Share Posted March 22, 2012 it's in the table ps_product stored the the mysql database Link to comment Share on other sites More sharing options...
Crazy-P Posted March 23, 2012 Author Share Posted March 23, 2012 #2 it is prestashop 1.4.4.1 #3 Ye I know it's stored in ps_product. But the solution I'm looking for is a way to sometimes prevent it from updating the date Link to comment Share on other sites More sharing options...
Rhapsody Posted March 23, 2012 Share Posted March 23, 2012 look in classes\Product.php Link to comment Share on other sites More sharing options...
Crazy-P Posted March 26, 2012 Author Share Posted March 26, 2012 Nope. I couldn't find it there. Link to comment Share on other sites More sharing options...
El Patron Posted March 26, 2012 Share Posted March 26, 2012 look in classes\Product.php I found it also in this file: $fields['date_add'] = pSQL($this->date_add); $fields['date_upd'] = pSQL($this->date_upd); maybe download windows grep so you are able to search for fields more easily. I use DW CS5 for searching. Link to comment Share on other sites More sharing options...
Crazy-P Posted March 26, 2012 Author Share Posted March 26, 2012 I did find that too. But I thought it wasn't that cuz I didn't see any "UPDATE`blabla` SET `date_upd`='something'" But I guess that's what the pSQL does? Either way gonna try it out later. Thanks Link to comment Share on other sites More sharing options...
Crazy-P Posted March 30, 2012 Author Share Posted March 30, 2012 Thank you 2. It works great : ) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now