guest* Posted December 16, 2010 Share Posted December 16, 2010 Today I installed the modul ventes flash and this modul has reseted in the DB the tables "reduction_from "and "reduction_to" to 0000-00-00 00:00:00.Now it is not possible to copy or edit any product without changing this into a valid date/time. It comes: "Fatal error (Product -> reduction_from = 0000-00-00 00:00:00)"Is there any SQL-query I can set the reduction_from and reduction_to to a valid date (ex. 2010-12-15 00:00:00 for both tables ?) Link to comment Share on other sites More sharing options...
superprg Posted December 16, 2010 Share Posted December 16, 2010 Please try this query: UPDATE PS_PRODUCT SET reduction_from = '2010-12-15 00:00:00' and reduction_to='2010-12-15 00:00:00'; Link to comment Share on other sites More sharing options...
guest* Posted December 16, 2010 Author Share Posted December 16, 2010 Thx. Sorry I'm a really nooby in codes..I tried your code and also this: UPDATE 'ps_product' SET 'reduction_from' = '2010-10-01 00:00:00', 'reduction_to' = '2010-10-01 00:00:00'; UPDATE 'ps_product' SET 'reduction_from' = '2010-12-15 00:00:00'; UPDATE 'ps_product' SET reduction_from = '2010-12-15 00:00:00'; all with error in SQL syntax. Link to comment Share on other sites More sharing options...
superprg Posted December 16, 2010 Share Posted December 16, 2010 The given query is correctPlease check the name of the table in the database before running Link to comment Share on other sites More sharing options...
guest* Posted December 16, 2010 Author Share Posted December 16, 2010 Finally this one work: ps_product in capital letters do not find the table: UPDATE ps_product SET reduction_from = '2010-12-15 00:00:00' Thxs for your help. Link to comment Share on other sites More sharing options...
superprg Posted December 16, 2010 Share Posted December 16, 2010 oh, werent you using phpmyadmin? Link to comment Share on other sites More sharing options...
guest* Posted December 17, 2010 Author Share Posted December 17, 2010 No. I don't like phpmyadmin. I prefer Heidi SQL. Link to comment Share on other sites More sharing options...
vestax Posted January 13, 2011 Share Posted January 13, 2011 hello,I'm having the same problem exists there a solution please?UPDATE prestashop_product SET reduction_from = '2011-01-13 00:00:00' and reduction_to='2011-01-13 00:00:00'0 ligne(s) affectée(s). ( Traitement en 0.0121 sec. ) Link to comment Share on other sites More sharing options...
guest* Posted January 13, 2011 Author Share Posted January 13, 2011 ??? The code stated below worked for me. What is your problem ?0 ligne(s) affectée(s). ( Traitement en 0.0121 sec. ) - says that no line is affected, because you don't have any line matching the code you have typed. Try to type this in capital letters: UPDATE PRESTASHOP_PRODUCT SET Link to comment Share on other sites More sharing options...
evandrulbt Posted July 13, 2011 Share Posted July 13, 2011 I use this form.. UPDATE ps_product SET reduction_to = '2012-12-15 00:00:00' UPDATE ps_product SET reduction_from = '2012-12-15 00:00:00' and now is working normal..phpMyAdminVersion: 3.3.3 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