new_12 Posted February 17, 2014 Share Posted February 17, 2014 (edited) i am using prestashop 1.6.0.3 default website.i want to include captcha in my contact form.it works fine in prestashop 1.6.0.2.when i copy my code in to my latest version,its alignment change. my captcha image display below footer.when i open my "view page source",my script <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=xxxxxxx"></script> display at bottom of my code. i want to load my script at required position. contact-form.tpl <div id="iframeLogin"> <label>{l s='Enter Captcha'}</label> <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=xxxxxx"></script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=xxxxxxx" height="300" width="500" frameborder="0"></iframe><br> <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> </noscript> </div> i tried to include my script by this method also $this->addJS(_THEME_JS_DIR_.'captcha.js'); captcha.js $(document).ready(function() { $("#iframeLogin").load(function(event){ $('#iframeLogin').load('http://www.google.com/recaptcha/api/challenge?k=xxxxxxx'); }); }); NOT WORKING...anyone plzz help meeee Edited February 17, 2014 by dip (see edit history) Link to comment Share on other sites More sharing options...
prestashopninja Posted February 17, 2014 Share Posted February 17, 2014 Hi, IMHO, better wait until the stable release of 1.6 as there will be probably a lot to change yet and even you'd fix this one for the moment, there are good chances you will see it not working with the next version. Link to comment Share on other sites More sharing options...
Dh42 Posted February 17, 2014 Share Posted February 17, 2014 I agree with PrestashopNinja on this one. Link to comment Share on other sites More sharing options...
new_12 Posted February 18, 2014 Author Share Posted February 18, 2014 my captcha code works fine.only prb is,it display below footer.and captcha script execute at end of code.thats y it display below footer.i dnt know how to execute script at required position,so that i can gt my captcha image in crrt position Link to comment Share on other sites More sharing options...
mondogiga Posted May 28, 2014 Share Posted May 28, 2014 my captcha code works fine.only prb is,it display below footer.and captcha script execute at end of code.thats y it display below footer.i dnt know how to execute script at required position,so that i can gt my captcha image in crrt position How do you verify the captcha to work with prestashop? Link to comment Share on other sites More sharing options...
F4br1zio Posted June 17, 2014 Share Posted June 17, 2014 Same problem. I used the h-hennes module and instructions. Link to comment Share on other sites More sharing options...
herve25 Posted July 11, 2014 Share Posted July 11, 2014 (edited) captcha-problem.jpg Same problem. I used the h-hennes module and instructions. Hello, Thanks for using this module. This problem is linked to the option "Move the javascript to the end" which you can manage in administration "Advanced Parameters/ performance" then fieldset "CCC (Combine, Compress and Cache)" Once this option is disabled the captcha is well displayed I should find a solution for next version of the module to be compatible with this option. Regards, Edited July 11, 2014 by herve25 (see edit history) Link to comment Share on other sites More sharing options...
herve25 Posted July 29, 2014 Share Posted July 29, 2014 Hello, Thanks for using this module. This problem is linked to the option "Move the javascript to the end" which you can manage in administration "Advanced Parameters/ performance" then fieldset "CCC (Combine, Compress and Cache)" Once this option is disabled the captcha is well displayed I should find a solution for next version of the module to be compatible with this option. Regards, Hello, This issue is fixed in the last version of the module. You can download it from this page http://www.h-hennes.fr/blog/module-recaptcha-pour-le-formulaire-de-contact-prestashop/ ( instructions in french ) Link to comment Share on other sites More sharing options...
Recommended Posts