Jump to content

Issue With Tools::issubmit()


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...