.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I can confirm that this worked for me in v. 1.5.4. The Create Account form was going through without checking the reCaptcha box, until I added:
beforeCode:$zco_notifier->notify('NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK');
in /includes/modules/YOUR_TEMPLATE/create_account.phpCode:if ($error == true) {
(couldn't figure out how to multi-quote, but this is what I was referring to:)
Reading a couple pages pack in this thread I saw someone mentioning their edits to /includes/modules/pages/contact_us/header_php.php on an older version of zen cart. I read to the very bottom of the instructions and saw this change is needed specifically on 1.5.1, even though I'm on 1.5.6 I tried it out as there was nothing left to do and sure enough the captcha became required to use the contact us form. Any ideas why 1.5.1 specific changes needed to be made on my 1.5.6 install?
I've also just had to do the same on the /includes/modules/TEMPLATE_NAME/create_account.php
Copying the zco notifier line across from the 1.3 files into this file made it work for me, else you could create an account without ticking the box!
J
Last edited by Reviresco; 13 Aug 2020 at 06:07 PM.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hi guys,
I installed this Recaptcha module a few months ago after getting spam sign ups.. but it has killed my sales and conversions...
So.. I tried to remove it from the create account page, just removing the recaptcha call from that page... this means it no longer displays, but when people try to create a new account now, they get the error message:
Please verify that you are not a robot
* Required information
There is no code on this page though that refers to recaptcha... do i need to modify other files? I would like to keep it on the contact us page.. just do not want to lose anymore sales..
Thanks
EDIT: See Lat9's post below regarding 'NOTIFY_CREATE_ACCOUNT_CAPTCHA_CHECK'
IT IS COMPATIBLE WITH v1.5.7b, but not with 1.5.7a or 1.5.7-without-a-letter-suffix.Is the plugin compatible with 1.5.7b?
The base install files does not affect ZC and can be copy as is to ZC1.5.7b... The template files are NOT the same as ZC1.5.7b and should NOT be dragged and dropped! Instead, copy the recaptcha line over and placed just below the last input field in the form and above the closing form tag.
Keep in mind, that the code is only good for version 2 of recaptcha... you can try version 3... The Free versions, 2 & 3 are only good for up to 1 million Assessments / Month!
This has no affect on the existing CAPTCHA in ZC1.5.7 and is just another test.. The existing well still work even when reCAPTCHA passes testing...
Tested live with heavy modified ZC1.5.7b and php7.4x on my contact page and map request page which is Get-a-Quote addon. I'll leave it up if you like to look...
Dave
Always forward thinking... Lost my mind!
Has anyone managed to get the recaptcha working on the create account page with FEC installed?
I've just taken over a zencart site and I'm "feeling" my way around!
I had a problem with recaptcha on the contact page but I've fixed that :)
But on the create account page (weirdly called /log-in on the frontend) I can get the Recaptcha box to show up but either ticking the box or not just refreshes the page with no errors? (nothing in the log files or server logs)
After digging I see that the FEC mod has it's own template & module files for creating accounts etc...
So I have /includes/modules/fec_create_account.php as well as the normal zencart create_account.php file
Template wise I have includes/templates/<my-template>/templates/tpl_login_default.php which seems to control the layout of the login / register page and has FEC code in it?
Zencart Version: 1.5.4
NOTE: if you're running the unsuffixed version of zc157 without having installed the known patches (https://www.zen-cart.com/showthread....v1-5-7-series) could be part of the problem.
That initial version had a bug that prevented multiple 'observers' from watching the same event, which might have play in the issue reported.