X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   reCAPTCHA for X-Cart Classic (https://forum.x-cart.com/showthread.php?t=74978)

PhilJ 11-13-2017 01:06 PM

Re: reCAPTCHA for X-Cart Classic
 
Quote:

Has anyone installed this on the V4.4.x branch?
I've just added a v4.4.x - v4.5.x patch to the zip file. Installation steps should be more or less the same for those branches. Feel free to try it and let me know if you encounter any issues. Obviously make backups beforehand.

Thomasb134 11-13-2017 01:23 PM

Re: reCAPTCHA for X-Cart Classic
 
Thanks!

vulcan-works 05-08-2018 09:33 AM

Re: reCAPTCHA for X-Cart Classic
 
Just Installed this on 4.7.9
All the forms work great the except Advance Customer Reviews
This is the error and the add review page is blank:

Quote:

[08-May-2018 13:14:09 America/New_York] PHP Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/var/www/html/store/skin/common_files/modules/Advanced_Customer_Reviews/customer_add_review.tpl" on line 84 "<td colspan="2">&nbsp;</td>" - Unexpected "<" <--
thrown in /var/www/html/store/include/lib/smarty3/sysplugins/smarty_internal_templatecompilerbase.php on line 84


Even when i comment out the line, it still throws the error
Thanks

PhilJ 05-10-2018 02:43 AM

Re: reCAPTCHA for X-Cart Classic
 
Blank pages are usually a Smarty code issue, double check you haven't got any unclosed {if} statements, or used a < instead of a { by mistake.

vulcan-works 05-10-2018 10:39 AM

Re: reCAPTCHA for X-Cart Classic
 
Just realized it:
Missing a "}" after $config.reCAPTCHA.reCAPTCHA_enabled_review eq "Y"
Quote:

{* reCAPTCHA - www.xcartmods.co.uk *}
{if $active_modules.reCAPTCHA && $config.reCAPTCHA.reCAPTCHA_enabled eq "Y" && $config.reCAPTCHA.reCAPTCHA_site_key && $config.reCAPTCHA.reCAPTCHA_secret_key && $config.reCAPTCHA.reCAPTCHA_enabled_review eq "Y"
<tr>
<td colspan="2">&nbsp;</td>
<td>{include file="modules/reCAPTCHA/reCAPTCHA.tpl" align="left"}</td>
</tr>
{/if}
{* /reCAPTCHA *}


nauticalstyle 06-27-2018 04:22 AM

Re: reCAPTCHA for X-Cart Classic
 
Quote:

Originally Posted by PhilJ
Updated, reworked. Quite a few changes, see install.txt
:
:
:

Captchas are not necessary for modal popup forms... ie. login / product ask a question etc. JS is required for modals and the mod detects if JS is enabled.




Why do you say "Captchas are not necessary for modal popup forms... ie. login / product ask a question etc."?

nauticalstyle 06-28-2018 01:09 AM

Re: reCAPTCHA for X-Cart Classic
 
I am trying to test the reCAPTCHA on my development site on localhost, however I'm not sure what Domain name to give Google for the key generation.

pauldodman 06-28-2018 02:02 AM

Re: reCAPTCHA for X-Cart Classic
 
Quote:

Why do you say "Captchas are not necessary for modal popup forms... ie. login / product ask a question etc."?


Probably because the spam robots usually go for the easy to detect forms such as register, contact, etc - the ones that they can find directly.
The modal ones require an action first to get to - so therefore don't get targetted by these robots.

pauldodman 06-28-2018 02:03 AM

Re: reCAPTCHA for X-Cart Classic
 
Quote:

I am trying to test the reCAPTCHA on my development site on localhost, however I'm not sure what Domain name to give Google for the key generation.


There are test keys available - maybe you can just use these:
  • Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
  • Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

nauticalstyle 06-28-2018 05:47 PM

Re: reCAPTCHA for X-Cart Classic
 
Quote:

Originally Posted by pauldodman
There are test keys available - maybe you can just use these:
  • Site key: 6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
  • Secret key: 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe





Thanks, Paul. I must be getting lazy. This topic is discussed extensively over at stackoverflow.


All times are GMT -8. The time now is 06:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.