naumanz Posted March 5, 2016 Share Posted March 5, 2016 I've Just asked the question on Stackoverflow but not getting any responses. Please check it and share what could be the possible issue ? http://stackoverflow.com/questions/35815768/toolsissubmit-prestashop-not-working Link to comment Share on other sites More sharing options...
erouvier29 Posted March 6, 2016 Share Posted March 6, 2016 Your code works properly for me on PS 1.6.0.14. I actually get "submit succes" in configuration just after a comment has been published. Of course, as soon as a product page is loaded again, I get "failure". Change the test code as: private function processCommentPublish() { $stat = Tools::isSubmit('comment_submit_form'); if($stat) { $stat = 'submit success: '.Tools::getValue('comment'); } else $stat = 'failure'; //Configuration::updateValue('BULKYEDIT_TESTVAL',$stat); file_put_contents(dirname(__FILE__).'/comment.log', '['.date('Y-m-d H:i:s').'] '.$stat.PHP_EOL, FILE_APPEND); } and inspect the generated log file. 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