Kirit0 Posted March 5, 2018 Share Posted March 5, 2018 (edited) Hola la version de mi Prestashop es 1.6.0.14 Hace poco he adquirido el modulo Re-Captcha en la tienda oficial de PrestaShop. https://addons.prestashop.com/es/seguridad-y-accesos/18478-re-captcha-anti-spam.html?pab=1& Una vez instalado en mi tienda no consigo que aparezca el botón. Sigo las instrucciones que vienen en el pdf: . After the standard installation, you must define your public and private Google ReCaptcha keys. To do this, you must create an account and register your site on the Google ReCaptcha configuration page. It takes some time for your keys to be activated by Google, the module will not be activated until then. 2. In the module configuration, you can choose whether you want the recaptcha to appear on your registration and contact pages. 3. For Prestashop 1.4, 1.5 and 1.6 add the following line to where you want to see the captcha in /themes/votre-theme/contactform.tpl {if isset($HOOK_CONTACT_FORM_BOTTOM)}{$HOOK_CONTACT_FORM_BOTTOM}{/if} Añado esa linea y sigue sin funcionar. Buscando en youtube encontre este video e hice lo mismo y aun asi no funciona. https://www.youtube.com/watch?v=nEPHGuQ4lvI ¿Alguien me puede ayudar?. </p> {/if} {/if} {if $fileupload == 1} <p class="text"> <label for="fileUpload">{l s='Attach File'}</label> <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> <input type="file" name="fileUpload" id="fileUpload" /> </p> {/if} <p class="textarea"> <label for="message">{l s='Message'}</label> <textarea id="message" name="message" rows="15" cols="10">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea> </p> <p class="submit"> {$HOOK_CONTACT_FORM_BOTTOM} <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" onclick="$(this).hide();" /> </p> </fieldset> </form> {/if} Edited March 5, 2018 by Kirit0 (see edit history) Link to comment Share on other sites More sharing options...
nadie Posted March 5, 2018 Share Posted March 5, 2018 (edited) ¿Has pulsado el botón "Limpiar cache(Borrar cache/Vaciar cache") que tienes en la zona superior de la pestaña Parametros Avanzados -> Rendimiento? Por cierto (te lo comemto aunque ya has comprado uno de pago xD) tienes un módulo gratuito que te añade el recaptcha: https://victor-rodenas.com/2018/01/18/captcha-para-prestashop-1-7/ que en el repositorio del desarrollador: https://github.com/nenes25/eicaptcha/releases tienes tambien una versión del modulo para Prestashop 1.6 ademas de otra versión para Prestashop 1.7 Por otro lado, usted que usa una versión inferior a Prestashop 1.6.1.17 es conveniente aplicar este parche oficial de seguridad: https://victor-rodenas.com/2018/02/21/se-estan-colando-rusos-o-chinos-por-el-formulario-de-contacto-en-prestashop/ o actualizar al menos hasta la version mas reciente dentro de la rama que estes usando, que a dia 5 de marzo de 2018 es Prestahop 1.6.1.18. Esto independientemente de que añadas el captcha, te lo digo por seguridad. Edited March 5, 2018 by nadie (see edit history) 1 Link to comment Share on other sites More sharing options...
Kirit0 Posted March 6, 2018 Author Share Posted March 6, 2018 Si compre un modulo recaptcha ni idea de que había uno gratuito no lo vi en el menú de módulos y compre uno que tenia buenas criticas pero no consigo hacerlo funcinar. Ya me gustaría poder montar el que esta comprado pero no consigo hacerlo funcionar. Sobre si se limpie la cache, si se borro y nada aun. Nadie me puede ayudar?? Estas son las instrucciones que vienen con el captcha. This module allows you to add a Google ReCaptcha on your registration and contact forms to protect you from spam. Installation 1. After the standard installation, you must define your public and private Google ReCaptcha keys. To do this, you must create an account and register your site on the Google ReCaptcha configuration page. It takes some time for your keys to be activated by Google, the module will not be activated until then. 2. In the module configuration, you can choose whether you want the recaptcha to appear on your registration and contact pages. 3. For Prestashop 1.4, 1.5 and 1.6 add the following line to where you want to see the captcha in /themes/votre-theme/contactform.tpl {if isset($HOOK_CONTACT_FORM_BOTTOM)}{$HOOK_CONTACT_FORM_BOTTOM}{/if} 4. For Prestashop 1.7 add the following line to where you want to see the captcha in /themes/your_theme/modules/contactform/views/templates/widget/contactform.tpl {if isset($HOOK_CONTACT_FORM_BOTTOM)}{$HOOK_CONTACT_FORM_BOTTOM nofilter} {/if} add the following line to where you want to see the captcha in /themes/yourtheme/templates/customer/partials/customer-form.tpl {hook h='displayCustomerAccountForm'} copy the file /modules/recaptcha/override/modules/contactform/contactform.php to /override/modules/contactform/contactform.php. Create the path if necessary. If the file exists, a developer will have to merge the code. 5. If you use Prestashop cache management: Go to the Administration> Advanced Settings> Performances Select "Force compilation on every call" Set "Cache" to "Off" Save Clear your browser cache or open a private browsing session Refresh the contact page to re-generate the cache You can then restore the previous configuration Link to comment Share on other sites More sharing options...
Kirit0 Posted March 6, 2018 Author Share Posted March 6, 2018 hace 16 horas, nadie dijo: Por otro lado, usted que usa una versión inferior a Prestashop 1.6.1.17 es conveniente aplicar este parche oficial de seguridad: https://victor-rodenas.com/2018/02/21/se-estan-colando-rusos-o-chinos-por-el-formulario-de-contacto-en-prestashop/ o actualizar al menos hasta la version mas reciente dentro de la rama que estes usando, que a dia 5 de marzo de 2018 es Prestahop 1.6.1.18. Esto independientemente de que añadas el captcha, te lo digo por seguridad. Por cierto lo de los rusos es lo que me esta pasando exactamente XD Link to comment Share on other sites More sharing options...
Kirit0 Posted March 6, 2018 Author Share Posted March 6, 2018 Y otra duda más y gracias por toda tu ayuda. Estoy haciendo lo de modificar el contact-form.tpl y el ContactControler.php. ¿Me podrías decir con que programa editas los archivos? Uso Areneae y no me sale igual que en los ejemplos. También tengo una duda donde se añade las 2 lineas Contact-form.tpl. No me sale igual que en el ejemplo, ademas que mi ultima linea es la 132 y en el ejemplo las que hay que añadir son la 149 y 150. {/if} <p class="textarea"> <label for="message">{l s='Message'}</label> <textarea id="message" name="message" rows="15" cols="10">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea> </p> <p class="submit"> <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" onclick="$(this).hide();" /> </p> </fieldset> </form> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now