darmowa captcha dla prestashop

https://www.prestashop.com/forums/topic/442633-add-recaptcha-to-prestashop-version-16014-for-free/

Hey guys,

 

It took me a while to figure out a FREE way to easily Add Google reCAPTCHA to PS v1.6.0.14 as most of the posts in the forums are quite outdated. Most are now PAID solutions.

Therefore I have decided to start this thread to assist anyone else looking for a quick FREE solution.

 

Step 1) Setup your Google reCAPTCHA Account @ https://www.google.c…ntro/index.html

 

Step 2) Download „EICAPTCHA-MASTER.ZIP” below. To install you will need to do this manually by uploading the ZIP file to your MODULES folder, Extracting it and Renaming it to EICAPTCHA. Bit of a pain I know.

 

Step 3) Configure your EICAPTCHA Module and enter your PUBLIC KEY and SECRET KEY, SAVE

 

Step 4) Make a Copy of your „contact-form.tpl” file at „/Themes/YourTheme/contact.tpl”

 

Step 5) Open „contact.tpl” and find:

style="text-align:right;" class="submit"> type="submit" name="submitMessage" id="submitMessage" class="button btn btn-default button-medium">{l s='Send'} class="icon-chevron-right right">

For me it was on Line 141

 

Directly above this div place the following code:

{if $captcha}
<p>
 src='https://www.google.com/recaptcha/api.js'>
class="g-recaptcha" data-sitekey="YOUR_PUBLIC_KEY">
</p> {/if}

NOTE: Be sure to replace „YOUR_PUBLIC_KEY” with your Google Public Key

 

Step 6: Save „contact-form.tpl” and upload it to your „theme/yourtheme/” folder via your FTP Program

 

Final Step: Refresh your browser and test your RECAPTCHA

 

Reklamy

Skomentuj

Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:

Logo WordPress.com

Komentujesz korzystając z konta WordPress.com. Wyloguj / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Wyloguj / Zmień )

Facebook photo

Komentujesz korzystając z konta Facebook. Wyloguj / Zmień )

Google+ photo

Komentujesz korzystając z konta Google+. Wyloguj / Zmień )

Connecting to %s