Jump to content

[SOLUCIONADO] Newsletter marcado por defecto


Javier Barcelona

Recommended Posts

Un saludo comunidad.

 

Necesito hacer que la opción de Newsletter al registrarse (authentication.tpl) aparezca marcada por defecto.

 

He seguido las indicaciones de Nadie (moderador) en este post:

 

http://www.prestashop.com/forums/topic/201764-solucionado-activar-suscripcion-a-las-newsletter-por-defecto-al-registrarse/?do=findComment&comment=998077

 

Pero me devuelve el siguiente error:

 

Notice: Undefined index: errors in/usr/home/miweb.com/web/cache/smarty/compile/50/84/43/508443cac7214e2e645934df42976c8d8d6d2456.file.authentication.tpl.php on line 649

Notice: Trying to get property of non-object in/usr/home/miweb.com/web/cache/smarty/compile/50/84/43/508443cac7214e2e645934df42976c8d8d6d2456.file.authentication.tpl.php on line 649
checked="checked" />

 

¿Alguien lo ha hecho? ¿Qué hago mal?

 

Gracias una vez más.

Edited by JavierSLM (see edit history)
Link to comment
Share on other sites

Dejalo asi, directamente:

<input type="checkbox" name="newsletter" id="newsletter" value="1" checked="checked" autocomplete="off" />

Pero una cosa, (La linea a modificar esta dos veces repetido en el fichero, una es para el registro simplificado, otra para el registro completo)

Link to comment
Share on other sites

Correcto Víctor, está repetida dos veces.

 

Gracias de nuevo pues funciona a la perfección.

 

Ahora cambio el titulo a 'Solucionado'  ;)

 

Un placer ayudarte y servirte !

 

PD: Como he visto que has añadido la palabra "Solucionado" al titulo del tema, procedo a cerrar el tema.

 

Saludos,

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...