new_12 Posted February 18, 2014 Share Posted February 18, 2014 i want to insert captcha code inside my tpl file.and this is my code <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=xxxxx"></script> <noscript> <iframe src="http://www.google.com/recaptcha/api/noscript?k=xxx" 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> my problem is,my script code execute last(checked view source code).so that,it display below footer.how to make it possible to execute my code in required position.so that it display at correct position Link to comment Share on other sites More sharing options...
shacker Posted February 19, 2014 Share Posted February 19, 2014 i think you can insert in the place you want, Link to comment Share on other sites More sharing options...
new_12 Posted February 19, 2014 Author Share Posted February 19, 2014 (edited) i did that...but,it display below footer.i place my code at correct position.it works fine in prestashop 1.6.0.2.but when i copy my code in to prestashop 1.6.0.3,my captcha image display below footer.the reason is,my captcha script execute only at bottom of my code(checked view source). Edited February 19, 2014 by new_12 (see edit history) Link to comment Share on other sites More sharing options...
shacker Posted February 19, 2014 Share Posted February 19, 2014 and if you put this in the place you want? <noscript> <iframe src="http://www.google.co.../noscript?k=xxx" 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> Link to comment Share on other sites More sharing options...
new_12 Posted February 19, 2014 Author Share Posted February 19, 2014 (edited) this code display at correct position(viewed source code)...but my <script> code display at bottom of my source code. Edited February 19, 2014 by new_12 (see edit history) Link to comment Share on other sites More sharing options...
new_12 Posted February 19, 2014 Author Share Posted February 19, 2014 ??any solution Link to comment Share on other sites More sharing options...
shacker Posted February 19, 2014 Share Posted February 19, 2014 well, site url? Link to comment Share on other sites More sharing options...
new_12 Posted February 19, 2014 Author Share Posted February 19, 2014 (edited) i solved it...use ajax method. Edited February 19, 2014 by new_12 (see edit history) Link to comment Share on other sites More sharing options...
new_12 Posted February 19, 2014 Author Share Posted February 19, 2014 my next prb is,when i enable friendly url in prestashop 1.6.0.3 images appear as question mark...and htaccess not working at all. Link to comment Share on other sites More sharing options...
shacker Posted February 20, 2014 Share Posted February 20, 2014 well, check with your server, seems that is a configuration issue, Link to comment Share on other sites More sharing options...
new_12 Posted February 20, 2014 Author Share Posted February 20, 2014 thnks Link to comment Share on other sites More sharing options...
felixdpg Posted March 26, 2014 Share Posted March 26, 2014 Hi new_12 You solve it using AJAX but what was a solution?. I have the same problem. Br Felix Link to comment Share on other sites More sharing options...
kamild13 Posted May 21, 2014 Share Posted May 21, 2014 Hi,Can you give me how you have added reCaptcha to Prestashop? I know that you have to choose the method of AJAX, but unfortunately the description posted on the Google reCaptcha is not too bright for me ... I would be grateful for any help Link to comment Share on other sites More sharing options...
Recommended Posts