Afternoon, since I have (had) the problem with my recpatcha for the guest check-out in an other topic, I decided to replace the older plugin with the latest version.
To my regred I did end up with the same situation as all others in this topic, so this means that the recaptcha is working for the contact form and the guest check-out, but it is not working as intended on the customer registration page.
The fact is that, altough you get the "We couldn't contact the reCAPTCHA server to verify your answer. Please try again", the recaptcha is resolved and the user is created in the backend, so it must be something that is going wrong with the php code.
So I did start to compare the php code I have from the older and the new version and did remove anything that seems unneeded.
The only part that seems to give problems is this:
function onBeforeUserUpdate(&$user, &$do){
if(@$_REQUEST=='com_hikashop' && @$_REQUEST=='user' && @$_REQUEST=='register' || @$_REQUEST=='com_hikashop' && @$_REQUEST=='checkout' )
return $this->onBeforeUserCreate($user, $do);
}
function onBeforeUserCreate(&$user, &$do){
$app = JFactory::getApplication();
if ($app->isAdmin() || (@$_REQUEST=='com_updateme' && @$_REQUEST=='subscription' && @$_REQUEST=='api')) return true;
$this->_init();
if(!$this->params->get('registration',1)){
return true;
}
$do = $this->_checkCaptcha();
}
In fact this is the only part from the new code I did keep in place, since without it I would end up with the old code and this does make it work for the guest check-out.
For the moment I will use the old version, since it will allow the normal registration and request information forms to work with the recaptcha. The guest check-out will have the recaptcha as well and customers can click it and resolve it's riddles but it does nothing with respect to blocking them if they use it or not to proceed to the check-out.
Just my two cents, not sure if I am looking in the right place or the rigth file
Rene