0

I want form key of product review form in magento 1.9 , Can anyone tell me how to get product wise formkey programatically.

0

You just need put this code:

<?php echo $this->getBlockHtml('formkey'); ?>

into file template/review/form.phtml

  • I have small doubt, <?php echo $this->getChildHtml('left') ?></div> what is the file 'left', how can i edit that. – zus Mar 31 '18 at 10:07
  • I want product review form key in external file not in template/review/form.phtml any idea ?? – Sanjay Gohil Apr 2 '18 at 10:13
0

Add in your form

<input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.