There is a code for checked newsletter subscription in Magento 2 registration page like below.

enter image description here

Even if I click on the checkbox and register the newsletter subscription is not working as shown below.

enter image description here

| improve this question | | | | |
  • Did you get any error in var/log folder? – Ranganathan Sep 18 '19 at 13:25
  • Please check with Magento's default template. If it is working with the default theme, the problem is in your custom theme. – Mohit Kumar Arora Sep 18 '19 at 13:31

In Magento customer account create post page the code looks like below:

    if ($this->getRequest()->getParam('is_subscribed', false)) {

If you see the data is posted correctly then you should look for the custom extensions which might be modifying the behavior of the method.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.