cancel
Showing results for 
Search instead for 
Did you mean: 

Newsletter checked (default) - Register form

SOLVED

Newsletter checked (default) - Register form

Gents,

   I wonder tu setup the Newsletter checked by default when a user wants to register. I found some solutions for 1.9 version... but I am working on Magento 2 now  Smiley Frustrated

¿Do you have any idea of how to do that?

 

Many thanks in advance

Federico

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Newsletter checked (default) - Register form

You can do it by an extension only.

How is the «Sign Up for Newsletter» checkbox implemented on the customer registration form? https://mage2.pro/t/1051

As you can see, you can write a plugin to the \Magento\Customer\Block\Form\Register class and to set the is_subscribed form field.

View solution in original post

2 REPLIES 2

Re: Newsletter checked (default) - Register form

You can do it by an extension only.

How is the «Sign Up for Newsletter» checkbox implemented on the customer registration form? https://mage2.pro/t/1051

As you can see, you can write a plugin to the \Magento\Customer\Block\Form\Register class and to set the is_subscribed form field.

Re: Newsletter checked (default) - Register form

Would you be able to tell how to write those kind of extensions?