• Closed by: Marek
  • Closed on: 02.07.19, 21:42
  • Reason: Closed
  • Comment: Glad to help!

Ticket #14519 - Add and replace

Good afternoon,

I have added a confirmation checkbox to all the forms with the module “Cumplimiento del RGPD de PrestaShop v1.1.3 - de PrestaShop”. I just managed to put it in some Is there any method to be added automatically in all contact forms, registration forms, purchase forms and subscription forms?

I would also like to know where I can locate the text “Your email address” of the subscription form to the newsletter to put it in Spanish, I can not locate the file in the translations and the CONTACT US (section phone) translation fails, it is not saved, is it a template mistake or the prestashop itself?.

The link is http://mokka.labelgrup.com/contactenos

Thanks!

Comments

Marek 13 May 2019, 16:12

Hi, Alejandro.
But as I can see there is “GDPR” checkbox under the form http://mokka.labelgrup.com/contactenos

The file to change “Your email address” is /modules/pspagebuilder/views/templates/front/widgets/widget_newsletter.tpl

alejandro martinez 13 May 2019, 16:37

Yes, but I want the checkbox to also appear in the newsletter record and in the registration drop-down (I attach a photo).

Thanks for your help.

alejandro martinez 13 May 2019, 17:16

I have written the checkbox code in the widget_newsletter.tpl but I can´t to do required, can you help me to do required the checkbox to submit the email?

The code that I add is:

<label><input type=”checkbox” name=”privacidad” required=”required”> Acepto la política de privacidad que puedo leer <a style=”color:black;” href=”/content/4-politica-privacidad-datos-personales-comprar-online” target=”_blank”>aquí</a>.</label>

The complete code is:

{*
* Promokit Newsletter Widget
*
* @package pspagebuilder
* @version 5.0
* @author https://promokit.eu * @copyright Copyright (C) 2018 promokit.eu <@email:support@promokit.eu>
* @license GNU General Public License version 2
*}
<div class=”block pts-newsletter {$addition_cls}{if isset($stylecls) && $stylecls} block-{$stylecls}{else} block-borderbox{/if}”>

  {if isset($widget_heading) && !empty($widget_heading)}
      {include file="_partials/heading.tpl" title={$widget_heading}}
  {/if}
  <div class="widget-inner block_content{if isset($content_alignment)} {$content_alignment}{/if}">
  <form action="{$urls.base_url}" method="post" class="newsletter-form relative flex-container">
      <input class="newsletter-input form-control" id="newsletter-input-footer" type="email" name="email_wdg" placeholder="{l s='Introduce tu Email' mod='pspagebuilder'}" required="required" value="" />
      <label for="newsletter-input-footer" aria-label="{l s='Introduce tu Email' mod='pspagebuilder'}"></label>
      <input type="hidden" name="action_wdg" value="0" />
      <button class="submit-widget-newsletter">
          <svg class="svgic svgic-right-arrow-thin"><use xlink:href="#si-right-arrow-thin"></use></svg>
      </button>
  <label><input type="checkbox" name="privacidad" required="required"> Acepto la política de privacidad que puedo leer <a style="color:black;" href="/content/4-politica-privacidad-datos-personales-comprar-online" target="_blank">aquí</a>.</label>
  </form>
  {if $information}
      {$information}
  {/if}
  {if isset($alert)}
  <div class="alert {$classalert}">{$alert}</div>
  {/if}
  </div>

</div>

Marek 13 May 2019, 17:23

Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office

alejandro martinez 13 May 2019, 17:26

I send you the file by it can help

Marek 13 May 2019, 17:54

Try to use this free official Prestashop module https://github.com/PrestaShop/psgdpr

alejandro martinez 14 May 2019, 09:28

This is the module that I try but it don’t put the checkbox in newsletter and client registration pop-up

Marek 14 May 2019, 10:23

Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office

alejandro martinez 14 May 2019, 11:36

The access fields are ready.

alejandro martinez 14 May 2019, 11:46

Ineed to translate the months of the blog too.

Marek 16 May 2019, 18:47

Now it should be fixed