First of all thank you so much for your time.
I am having an issue, I need to add the captcha field to the review product form. The weird part is that when the form is submitted, the captcha is validated and I get the error message, Invalida captcha, but the captcha input, image and refresh button are not displayed in the form.
I added the following, but I am confused on 2 things:
In the config.xml we have the controller_action_predispatch_review but I don't know how to name it exactly, based on what, also in the same file, we have frontend->layout->updates and then the following node is "reviewcaptcha" but not sure as well how that node has to be named, the last one, is the formId name, in this example is review since It's the same name that I am using in the node after frontend:
Product Review . . .- Added Dev_Reviewcaptcha.xml to etc/modules with the following:
- In app/code/local i added the following:
a) Dev/Reviewcaptcha/etc/config.xml
0.0.1 Dev_Reviewcaptcha_Model reviewcaptcha/observer checkReviewCaptcha dev_reviewcaptcha.xml Product Review 1b) Dev/Reviewcaptcha/Model/Observer.php
getCaptcha($formId); if ($captchaModel->isRequired()) { $controller = $observer->getControllerAction(); if (!$captchaModel->isCorrect($this->_getCaptchaString($controller->getRequest(), $formId))) { Mage::getSingleton('customer/session')->addError(Mage::helper('captcha')->__('Incorrect CAPTCHA.')); $controller->setFlag('', Mage_Core_Controller_Varien_Action::FLAG_NO_DISPATCH, true); $controller->getResponse()->setRedirect(Mage::getUrl('/')); } } return $this; } } 3) In design/frontend/default/celebrity/layout/ I added dev_reviewcaptcha.xml mage/captcha.js review 230 50- I added the following to the review product form