All Questions
9 questions
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="...
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.
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 ...
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 ...
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 ...
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?
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 ...
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.
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\...