Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
192 views

How to make checkbox Check/Uncheck onchange trigger event to subscribe/unsubscribe customer from newsletter magento 2 on customer/account?

Basically I have a checkbox on customer/account page adding via code below. app\design\frontend\Company\porto_base_child\Magento_Customer\templates\account\dashboard\info.phtml <div class="...
J. Doe's user avatar
  • 269
1 vote
1 answer
1k views

How to auto subscribe customer in registration process?

There is a code for checked newsletter subscription in Magento 2 registration page like below. Even if I click on the checkbox and register the newsletter subscription is not working as shown below.
Ramesh KR's user avatar
  • 886
1 vote
1 answer
54 views

Magento 2 How can I restrict abc.com/newsletter/manage/?

In Magento 2 we have newsletter functionality and we can hide the link from the customer account and hide from customer account create a form as well. That all working fine. I want to hide the page ...
Utsav Gupta's user avatar
  • 1,243
0 votes
0 answers
137 views

How we can save the newsletter to true for customer on checkout page in Magento 2?

I have created a Js component in which i am showing a checkbox of Register for Newsletter.It is showing above shipping form that is correct. What i want that when i will check this checkbox then it ...
Magento Dev's user avatar
  • 1,264
1 vote
0 answers
711 views

Newsletter subscription problem during registration in magento2

I am getting both subscribe and unsubscribe email once i register the customer with selecting subscribe for newsletter with ticking the checkbox. I am getting both emails one is subscription and ...
Jafar Pinjar's user avatar
  • 1,961
2 votes
2 answers
4k views

How to set customer subscribed to newsletter by customer id

I have an existing customer id, i want to set the customer subscribed to the newsletter using this customer id, is there a way to do this?
Idham Choudry's user avatar
1 vote
1 answer
141 views

Website received malicious customers : Magento 2

Website receiving the customers with emails, names, and addresses contains only strings of numerical values followed by the @qq.com/@843145.com domain. We have received every day more than 10 ...
Bojjaiah's user avatar
  • 3,782
2 votes
0 answers
163 views

Magento 2 - new inscription newsletter error (no such entity with customerId = 0)

I always have this error when I try to register to newsletter in Magento 2. The error is: No such entity with customerId = 0 If I try to add it directly from database, it works perfectly.
Abdel Chraibi's user avatar
10 votes
1 answer
11k views

Magento 2 Check If Customer is Subscribed to Newsletter

I am developing this custom xml export/import. In magento 2 how can I check if a customer is subscribed to newsletter? Right now I am loading the customer factory. \Magento\Framework\App\...
André Ferraz's user avatar