Jump to content

prestashop 1.6.0.3 captcha alignment prb


new_12

Recommended Posts

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>
             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 by dip (see edit history)
Link to comment
Share on other sites

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

  • 3 months later...

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

  • 3 weeks later...
  • 4 weeks later...

 

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 by herve25 (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

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

×
×
  • Create New...